Serious error in int() function?

martin.spichty at gmail.com martin.spichty at gmail.com
Wed Apr 13 03:41:49 EDT 2016


Hi,

there may be a serious error in python's int() function:

print int(float(2.8/0.1))

yields

27

instead of 28!!

I am using Python Python 2.7.6, GCC 4.8.2 on Linux Ubuntu.

Is that known?
Best,
Martin



More information about the Python-list mailing list