Re: BUG! Erratic for loop behavior

new topic     » goto parent     » topic index » view thread      » older message » newer message

dm31 at uow.edu.au wrote:
> ... 
> an example is the 0.1 is stored as 1 x 10^-1
> thus the mantissa is 1 and the exponent is -1
> ...

That's not the truth! Mantissa and exponent each are stored as BINARY
numbers, NOT decimal!
o.1 decimal is binary (unlimited):
0.000110011001100... which is stored as 0.110011001100...    -1000 ,
                                          (mantissa)     (exponent)

the usual way to store floating point numbers.

Note: the mantissa is cut due to the limited number of bytes available;
it means not exactly!

Look here for more details:

  http://www.psc.edu/general/software/packages/ieee/ieee.html

Have a nice day, Rolf

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu