Python float representation error?

Alex Martelli aleaxit at yahoo.com
Sun Mar 26 20:39:03 EST 2006


mailpitches at email.com <mailpitches at email.com> wrote:

> try running this in python:
> 
> print [39.95]
> 
> the output i get is:
> [39.950000000000003]
> 
> what's up with that?

Why not start by reading the Python online tutorial?  Specifically
<http://docs.python.org/tut/node16.html>?


Alex



More information about the Python-list mailing list