
25 Jan
2010
25 Jan
'10
4:10 p.m.
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