Electrical and Computer Engineering 2277A/B Lecture Notes - Lecture 2: Bit Array, Signed Number Representations, Binary Number

14 views3 pages

Document Summary

Given a positive (unsigned) binary number x, there are three ways to represent the negative quantity, x. We partition the binary word into two parts: Msb indicates the sign (0: positive, 1: negative) remaining lower-order bits are the magnitude. Usually the word size is an integer multiple of bytes. Example: express as an 8-bit signed magnitude binary number 10011011. One"s complement: take positive form of binary number and change all the 0"s to 1"s and all the 1"s to 0"s. Same procedure for converting a one"s complement negative number to its positive encoding. Note: the ms indicates the number is negative. No difference with the positive portion of the number space. Given 8-bit string as x = 00010011 and asked for decimal equivalent: Calculating magnitude when dealing with negative portion of the number space is different. Calculate the |x| using lower 7-bits as we saw earlier. |x| = |1910 | so x = -1910.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents