rounding errors?

Tim Peters tim.peters at gmail.com
Sat Jul 3 00:02:54 EDT 2004


[todd]
...
> >>> .21
> 0.20999999999999999
> >>>
>
> Now, I realize that this is really small errors.. Does anybody have an
> explanation why Python picks up or loses these?

Many people do, and a few of them are even correct <wink>.  If you
start here, you can stop here too:

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




More information about the Python-list mailing list