Message358820
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 |
|
Date |
User |
Action |
Args |
2019-12-23 15:20:12 | adelsonllima | set | recipients:
+ adelsonllima, mark.dickinson |
2019-12-23 15:20:12 | adelsonllima | set | messageid: <1577114412.82.0.327137304747.issue39124@roundup.psfhosted.org> |
2019-12-23 15:20:12 | adelsonllima | link | issue39124 messages |
2019-12-23 15:20:12 | adelsonllima | create | |
|