[issue16460] Strange results for floor division ("//") with non-integer divisors
Serhiy Storchaka
report at bugs.python.org
Mon Nov 12 11:21:40 CET 2012
Serhiy Storchaka added the comment:
> Your computer is not capable of performing the mathematically-divided-by operation; you have to compute it on paper.
You can compute it with Python.
>>> math.floor(1/fractions.Fraction(0.1))
9
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16460>
_______________________________________
More information about the Python-bugs-list
mailing list