03 Sign, Magnitude, Twos Complement
Signed
Signed values can be positive or negative. Computers use the first bit to indicate this. If the first bit is 1
, the number is negative. If the first bit is 0
, the number is positive. To determine the value of the number, the other 7 bits are used.
Hence for a signed 1000 0001
, it will mean -1
Unsigned
Unsigned values will only be positive. Since there is no indication needed for whether the number is positive or negative, all 8 bits will be used to determine the value of the number.
For an unsigned 1000 0001
, it will mean 129
Lesson PowerPoint
Lesson Activities