[issue41920] Weird add operation of "0.2222 + 0.1111"
Steven D'Aprano
report at bugs.python.org
Sat Oct 3 08:15:03 EDT 2020
Steven D'Aprano <steve+python at pearwood.info> added the comment:
Some further resources:
https://stackoverflow.com/questions/8215437/floating-point-accuracy-in-python
https://stackoverflow.com/questions/21895756/why-are-floating-point-numbers-inaccurate
https://stackoverflow.com/questions/1089018/why-cant-decimal-numbers-be-represented-exactly-in-binary?noredirect=1&lq=1
https://randomascii.wordpress.com/category/floating-point/page/1/
If you google a bit you will find many other places that discuss this.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41920>
_______________________________________
More information about the Python-bugs-list
mailing list