[issue39335] round Decimal edge case

Benjamin Peterson report at bugs.python.org
Tue Jan 14 22:12:42 EST 2020


Benjamin Peterson <benjamin at python.org> added the comment:

On Python 2, round just converts the decimal to a float. So, this is a consequence of:

>>> float(Decimal('-123.499999999999999999999999999999999999999999'))
-123.5

----------
nosy: +benjamin.peterson
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list