Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2006-02-10 05:24:17


> I don't see where you're getting your # of digits
> my calculations show that it's around 14 for 64bit floating and
> around 7 for 32bit
> numeric_limits<>::digits10 shows 6 for float, 15 for double on vc8

Those are the numbers of decimal digits that can be stored without loss in
binary form, the number of decimal digits needed to represent a binary
number without loss is somewhat higher (about 2 digits higher will usually
suffice).

John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk