[issue36028] Integer Division discrepancy with float
Au Vo
report at bugs.python.org
Tue Feb 19 00:14:49 EST 2019
Au Vo <auvo1001 at gmail.com> added the comment:
Thanks for the quick turnaround. I have done a little bit more thorough investigation and it does indeed the floating point that causes the behavior. The screenshot attached is done via Python3 from trinket.io. I will submit a screenshot of the Python 2 screenshot from trinket.io for comparison. Even though floating point is the underlying concept, Python 2 and 3 do not converge in the result.
On the side note, The behavior could be more easily expressed as follows:
2// .2 == 9.0
2000000000/.2 == 9999999999.0
----------
Added file: https://bugs.python.org/file48152/Screen Shot 2019-02-18 at 9.07.37 PM.png
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36028>
_______________________________________
More information about the Python-bugs-list
mailing list