Message379592
This isn't a bug. It's due to the base 2 representation of floating point numbers. See for example: See https://docs.python.org/3/tutorial/floatingpoint.html
It's possible, depending on your use case, you might want to use the decimal module. But that has it's own issues that you should be aware of. For example, 1/7 is not exactly representable in either floats or Decimals. |
|
Date |
User |
Action |
Args |
2020-10-25 17:28:49 | eric.smith | set | recipients:
+ eric.smith, atuccia |
2020-10-25 17:28:49 | eric.smith | set | messageid: <1603646929.17.0.817707854672.issue42148@roundup.psfhosted.org> |
2020-10-25 17:28:49 | eric.smith | link | issue42148 messages |
2020-10-25 17:28:49 | eric.smith | create | |
|