Raymond Hettinger added the comment: The text is now correct and matches the spec: http://speleotrove.com/decimal/daops.html#refremnear
The doctests should be expanded to show all of the examples listed in that document: remainder-near(’2.1’, ’3’) ==> ’-0.9’ remainder-near(’10’, ’6’) ==> ’-2’ remainder-near(’10’, ’3’) ==> ’1’ remainder-near(’-10’, ’3’) ==> ’-1’ remainder-near(’10.2’, ’1’) ==> ’0.2’ remainder-near(’10’, ’0.3’) ==> ’0.1’ remainder-near(’3.6’, ’1.3’) ==> ’-0.3’ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16344> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com