[issue39124] round Decimal error
New submission from Adelson Luiz de Lima : When I round this: round(Decimal('9.925'), 2), in Python 3.7.5 the result is Decimal('9.92'), but in Python 2.7.17 is 9.93 -- messages: 358814 nosy: adelsonllima priority: normal severity: normal status: open title: round Decimal error type: crash versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue39124> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39124] round Decimal error
Adelson Luiz de Lima added the comment: Thanks for the quick response. I try the follow code in python 3.7: round(9.925, 2) => 9.93 round(Decimal('9.925'), 2) => Decimal('9.92') I do not understande why behavior of float is diferrent of the Decimal. In python 2.7 I have the same result: 9.93 -- status: closed -> open ___ Python tracker <https://bugs.python.org/issue39124> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com