Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2006-12-01 16:29:44


Ben Strasser wrote:
> Perhaps I'm missing something completly obvious but what is the use of a non
> binary radix integer? Except perhaps faster I/O as no implicit base conversion
> is needed.

Base ten^n shifts can be practical to implement a "human compatible" float,
which is useful to avoid conversion errors in cases where decimal numbers don't
have an exact binary representation, such as 0.2 (== 0xb0.001100110011... IIRC).

Regards,

Tobias


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