Bad Math

Patrick Rutkowski rutski89 at gmail.com
Fri Jul 1 23:56:24 EDT 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