◐ Shell
clean mode source ↗

Message 174390 - Python tracker

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’