[issue29962] Add math.remainder operation
Serhiy Storchaka
report at bugs.python.org
Sat Apr 1 11:08:42 EDT 2017
Serhiy Storchaka added the comment:
See also Decimal.remainder_near and _PyLong_DivmodNear. Shouldn't the new function be named math.remainder_near?
In many cases the function that returns the nearest integer quotient is useful. See Fraction.__round__, datetime._divide_and_round, _pydecimal._div_nearest, etc.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29962>
_______________________________________
More information about the Python-bugs-list
mailing list