in reply to Re^2: Floating point problems
in thread Floating point problems
it seems to be an anti-patternNo. It is not an anti-pattern here at all.
In fact is is the ONLY sensible thing to do.
That floats are not suitable to reprensent monetary amounts (ultimately because 0.1 is not a finite decimal in binary) is in fact so well known and has been so many times advised against that I am in fact surprised that anybody would consider this even for a second.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Floating point problems
by bluescreen (Friar) on Oct 24, 2010 at 01:01 UTC | |
by Corion (Patriarch) on Oct 24, 2010 at 09:55 UTC | |
by ig (Vicar) on Oct 24, 2010 at 07:19 UTC |