Re: BUG! Erratic for loop behavior
- Posted by rolf.schroeder at desy.de Mar 25, 2002
- 476 views
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