Python can't divide??!?!

Josiah Carlson jcarlson at nospam.uci.edu
Fri Feb 6 12:18:59 EST 2004


>>Wacky.

Not wacky, there is a difference between str() and repr():

 >>> str(3.0/5)
'0.6'
 >>> repr(3.0/5)
'0.59999999999999998'


  - Josiah



More information about the Python-list mailing list