29
18.3.2003
Copyright Teemu Kerola 2003
IEEE 32-bit FP Values
(6)
exponent
8 bits
mantissa or significand
23 bits
sign
1 bit
0
111 1000 0000 0000 0000 0000
1000 0000
X = ?
=
(1 + 0.5 + 0.25 + 0.125+0.0625) * 2
=
(1+ 1/2 + 1/4 + 1/8 + 1/16) * 2
= 1.1111
2
* 2
= 1.9375 * 2
= 3.875
X = (-1)
0
*
1
.1111 * 2
(128-127)
0x40740000