Message372986
Agreed, and it's even slightly worse with the ROUND_FLOOR special case:
>>> c.rounding = ROUND_FLOOR
>>> +Decimal("-0")
Decimal('-0')
>>>
That's why there are three slightly different methods for applying the
context:
1) context.create_decimal() ==> special case for NaN payloads.
2) context.apply() (private method) ==> no special cases at all.
3) Decimal.plus() ==> ROUND_FLOOR special case. |
|
Date |
User |
Action |
Args |
2020-07-04 09:22:30 | skrah | set | recipients:
+ skrah, tim.peters, rhettinger, facundobatista, mark.dickinson, docs@python, JD-Veiga |
2020-07-04 09:22:30 | skrah | set | messageid: <1593854550.05.0.161116583081.issue41205@roundup.psfhosted.org> |
2020-07-04 09:22:30 | skrah | link | issue41205 messages |
2020-07-04 09:22:29 | skrah | create | |
|