Python fails on math

Grant Edwards invalid at invalid.invalid
Tue Feb 22 20:38:46 CET 2011


On 2011-02-22, Roy Smith <roy at panix.com> wrote:
> In article <ik0rmr$ck4$1 at reader1.panix.com>,
>  Grant Edwards <invalid at invalid.invalid> wrote:
>
>> Python doesn't do equations.  Python does floating point operations.
>
> More generally, all general-purpose programming languages have the same 
> problem.  You'll see the same issues in Fortran, C, Java, Ruby, Pascal, 
> etc, etc.  You'll see the same problem if you punch the numbers into a 
> hand calculator.

Some hand calculators use base-10 (BCD) floating point, so the
problems aren't exactly the same, but they're very similar.

-- 
Grant Edwards               grant.b.edwards        Yow! YOU PICKED KARL
                                  at               MALDEN'S NOSE!!
                              gmail.com            



More information about the Python-list mailing list