Precision?

tiissa tiissa at nonfree.fr
Sun May 15 10:02:06 EDT 2005


Steffen Glückselig wrote:
>>>>1.0 + 3.0 + 4.6
> 
> 8.5999999999999996
> 
> Ehm, how could I get the intuitively 'correct' result of - say - 8.6?
> ;-)

You may find annex B of the python tutorial an interesting read:
http://docs.python.org/tut/node16.html



More information about the Python-list mailing list