Math errors in python

Tim Peters tim.peters at gmail.com
Sat Sep 18 13:08:54 EDT 2004


[Radioactive Man]
> In python 2.3 (IDLE 1.0.3) running under windows 95, I get the
> following types of errors whenever I do simple arithmetic:
>
> 1st example:
> >>> 12.10 + 8.30
> 20.399999999999999

...

Please read the Tutorial appendix on floating-point issues:

    http://docs.python.org/tut/node15.html



More information about the Python-list mailing list