Signed, Unsigned and Fractional Binary Numbers
Signed, Unsigned and Fractional Binary Numbers
Signed, Unsigned and Fractional Binary Numbers
factors.
The type of symbol used The position of the symbol with respect to a fixed
The "0" in the tensthe hundreds column The digit "2" inpositional value The digit "7" inabsolute value of all therefore, the the ones positional means there column meansthe absolute value column 702. represent there are positional are no tens, so the absolute three digits is value is 0. 2. value of
seven hundreds.
For signed integers that use twos complement notation, the MSB is assigned the role of indicating the sign of the number. An MSB of 1 means that the number is negative; an MSB of 0 means that the number is positive (or zero).
The procedure for determining the decimal equivalent of a twos complement binary number is exactly the same as the one we have used for unsigned integer, except that the sign of the MSB is negative.
b6
b5
b4
b3
b2
b1
b0
-27 -27
26 26
25 24 25 24
23 23
22 21 22 2 1
20 20
Unsigned integers:
Location of binary point for an 8-bit binary number in twos complement signed integer and unsigned integer formats.
.
Location of binary point Sign bit
MSB
b7 b6 b5 b4 b3 b2 b1
LSB
b0
MSB
b7
LSB
b6 b5 b4 b3 b2 b1 b0
Location of binary point for an 8-bit binary number. The upper part shows the unsigned fraction format. The lower part shows the signed fraction format.
To determine the b7 b6 b5 b4 b3 b2 b1 b0 decimal equivalent of 2-1 2-2 2-3 2-4 2-5 2-6 2-7 2-8 a binary fraction, Location of binary multipl the binary point (unsigned fraction) 0.0068125 0.00390625 fraction, multiply the 0.5 0.25 0.125 binary digit that is n MSB LSB places to the right of the decimal point by b7 b6 b5 b4 b3 b2 b1 b0 2-n , or 1/2n . The -20 2-1 2-2 2-3 2-4 2-5 2-6 2-7 upper part shows the Location of unsignedpoint binary fraction. 1 0.25 0.5 0.015625 0.0078125 The lowerfraction) (signed part shows the signed fraction format.
MSB
LSB