[issue2140] calculation bug in long() function

Markus Stoll report at bugs.python.org
Mon Feb 18 13:18:19 CET 2008


New submission from Markus Stoll:

betrag = 146.95
betrag = float(betrag)
betrag = betrag * 100.0
betrag = long(betrag)
print betrag

gives 14694 as result rather than 14695

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2140>
__________________________________


More information about the Python-bugs-list mailing list