8-BIT FLOATING POINT FORMAT (1)
sign
1 bit
exponent
3 bits
significand
4 bits
number
base 2
number
base 10
0 001 1001 1.001x2
1
2.25
0 011 1100 1.1 x 2
3
12.0
0 111 1110 1.11 x 2
7
224.0
1 001 1110 1.11 x 2
-1
0.875
8
IMPROVEMENTS
Bias the exponent
Always subtract a fixed amount, e.g., 3
Allows representation of negative exponents
Implicit one
-Leading one in a Phone number such as
1-619-556-0231 is redundant.
Why use a bit for the leading one?
9
IEEE STANDARD FLOATING-POINT
Singleprecision
32bits
sign: 1 bit
exponent: 8bits
significand: 23bits
Bias: 127
Doubleprecision
64bits
sign: 1 bit
exponent: 11bits
significand: 52bits
Bias: 511
10
PRACTICE( BASE 10)
13 = 1.3 x 10
1
= 1.011 x 2
3
1.25 = 1.25 x 10
0
= 1.010 x 2
0
11