Python doesn't know how to do math?

Andrew Koenig ark at research.att.com
Thu Apr 25 18:43:01 EDT 2002


>>>> float(5)/float(100)
Chris> 0.050000000000000003
>>>> 5.0/100.0
Chris> 0.050000000000000003

Chris> 	Okay, I might not be a math genius, but this is most definately WRONG.

Why do you think so?

-- 
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark



More information about the Python-list mailing list