|
Boost : |
Subject: [boost] Decimal math (was: floating point FUD)
From: dherring_at_[hidden]
Date: 2010-01-25 11:10:13
On Sat, 23 Jan 2010, Phil Endecott wrote:
> Thomas Klimpel wrote:
>> Find attached a small test program that tries to highlight
>> some of the "usual" floating point traps.
>
> Is it time to raise the idea of a Boost fixed-point library again?
>
> It's not a solution for all, or even most, floating-point problems, but
> there are cases where floats are used only because they are more
> convenient (i.e. better supported by the language) than fixed-point.
For cases where base-10 is desired, see
http://speleotrove.com/decimal/
Many design decisions may also be relevant for a fixed-point library.
- Daniel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk