[issue10163] 7/200 and 7%200 show weird results
Georg Brandl
report at bugs.python.org
Thu Oct 21 13:24:36 CEST 2010
Georg Brandl <georg at python.org> added the comment:
The result of 7 / 200 is easy to explain -- this is how integer division works in Python 2. (To get a floating result, one of the numbers must be a float.)
200 % 7 giving 7 however is strange. Are you sure this is what you calculated?
----------
nosy: +georg.brandl
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10163>
_______________________________________
More information about the Python-bugs-list
mailing list