[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 32b long int???????



Erik wrote:

> try a float or a double, a double should retain more precision and range than a
> 64b binary plain, and float is probably "close enough"

Floats only contain 32 bits and whilst doubles are 64bit, they can't accurately
represent more than 50-odd integer bits because of the bits consumed by the
exponent.

-- 
Steve Baker                  http://web2.airmail.net/sjbaker1
sjbaker1@airmail.net (home)  http://www.woodsoup.org/~sbaker
sjbaker@hti.com      (work)