Python math is off by .000000000000045
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Sun Feb 26 22:28:07 EST 2012
On Sun, 26 Feb 2012 16:24:14 -0800, John Ladasky wrote:
> Curiosity prompts me to ask...
>
> Those of you who program in other languages regularly: if you visit
> comp.lang.java, for example, do people ask this question about
> floating-point arithmetic in that forum? Or in comp.lang.perl?
Yes.
http://stackoverflow.com/questions/588004/is-javascripts-math-broken
And look at the "Linked" sidebar. Obviously StackOverflow users no more
search the internet for the solutions to their problems than do
comp.lang.python posters.
http://compgroups.net/comp.lang.java.programmer/Floating-point-roundoff-error
--
Steven
More information about the Python-list
mailing list