[issue45918] Possibly use ROUND_05UP in decimal's localcontext() example

Tim Peters report at bugs.python.org
Sun Nov 28 14:29:16 EST 2021


Tim Peters <tim at python.org> added the comment:

Not a good idea in general - this rounding mode is _mostly_ "to zero", and isn't intended for chains of operations. I don't believe I've ever seen it used in a real program, so the current "no example at all" is a fair representation of real usage ;-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45918>
_______________________________________


More information about the Python-bugs-list mailing list