[docs] Unbelievable bug

Kavosh Asadi Atui asadiatu at ualberta.ca
Wed Nov 13 22:06:45 CET 2013


python cannot compute 1.2 + 0.6 2.7.3 and 3.2
tested on linux and windows. It returns 1.79999 for this sum

even worse, it cannot compute any sum like 1.2*(2^i) + 0.6*(2^i) !!!!!

>>> 1.2+0.6
1.7999999999999998
>>> !!!!!!!!!
SyntaxError: invalid syntax
>>> 1.2+0.6 == 1.8
False
>>> !!!!!!!!!!!!!!!!!
SyntaxError: invalid syntax
>>> 2.4+1.2
3.5999999999999996
>>> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20131113/daa3022c/attachment-0001.html>


More information about the docs mailing list