[issue22337] Modulus not returning proper remainder
R. David Murray
report at bugs.python.org
Fri Sep 5 00:01:31 CEST 2014
R. David Murray added the comment:
This is, indeed, the way Python works. See
https://docs.python.org/3/reference/expressions.html
where you will find:
The modulo operator always yields a result with the same sign as its second operand (or zero); the absolute value of the result is strictly smaller than the absolute value of the second operand
----------
nosy: +r.david.murray
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22337>
_______________________________________
More information about the Python-bugs-list
mailing list