Skip to content
Prev 43891 / 398528 Next

0.1 + 0.2 != 0.3 revisited

Hi,

IEEE says that real numbers are normalized (a few below 10^(-16) may be 
not [gradual underflow]), so that they look like 0.1ddd2^ex. Then only 
ddd and ex are kept:
0.1 = 0.00011.. 2^0 = 0.11001100.. 2^(-3) -> (11001100.., -3)
0.2 = 0.0011..  2^0 = 0.11001100.. 2^(-2) -> (11001100.., -2)
0.3 = 0.010011..2^0 = 0.10011001.. 2^(-1) -> (10011001.., -1)
Duncan Murdoch wrote:

            
I don *not* think so: all mantissas here have *52 binary* places!
Christian Hoffmann