[issue6387] floor division gives different result for int versus float.
Tim Peters
report at bugs.python.org
Tue Jun 30 16:16:44 CEST 2009
Tim Peters <tim.peters at gmail.com> added the comment:
Yup, -1 here too. For dyadic arithmetic operations (+ - * / % //) on
mixed numeric types, Python's execution model coerces the operands to a
common type before computation begins. Besides just being the way it's
worked "forever" in Python, it's consistent and explainable. Growing a
wart for one case of one case would be inconsistent and deeply
surprising at a higher level. Live with it ;-)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6387>
_______________________________________
More information about the Python-bugs-list
mailing list