Python math is off by .000000000000045

Grant Edwards invalid at invalid.invalid
Mon Feb 27 10:02:51 EST 2012


On 2012-02-27, Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote:
> 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

One might wonder if the frequency of such questions decreases as the
programming language becomes "lower level" (e.g. C or assembly).

-- 
Grant Edwards               grant.b.edwards        Yow! World War III?
                                  at               No thanks!
                              gmail.com            



More information about the Python-list mailing list