Bad Math

Patrick Rutkowski rutski89 at gmail.com
Sat Jul 2 05:56:24 CEST 2005


I started reading a python book today, one example was:

>>> 4 / (2.0 + 3)
0.8

My input/output was:

>>> 4 (2.0 + 3)
0.80000000000000004

Something smells fishy here... whats up?

--python 2.4.1



More information about the Python-list mailing list