Message416337
This is documented
https://docs.python.org/3/library/functions.html#round
> The behavior of round() for floats can be surprising: for example, round(2.675, 2) gives 2.67 instead of the expected 2.68. This is not a bug: it’s a result of the fact that most decimal fractions can’t be represented exactly as a float. See Floating Point Arithmetic: Issues and Limitations for more information. |
|
Date |
User |
Action |
Args |
2022-03-30 11:04:59 | xtreak | set | recipients:
+ xtreak, vishalatul09 |
2022-03-30 11:04:59 | xtreak | set | messageid: <1648638299.31.0.152847329174.issue47160@roundup.psfhosted.org> |
2022-03-30 11:04:59 | xtreak | link | issue47160 messages |
2022-03-30 11:04:59 | xtreak | create | |
|