[issue44054] 2**53+1 != float(2**53+1)
Boštjan Mejak
report at bugs.python.org
Thu May 6 08:02:00 EDT 2021
Boštjan Mejak <bostjan.xperia at gmail.com> added the comment:
I would compare it like this:
>>> from decimal import Decimal
>>> 2**53 + 1 == Decimal(2**53 + 1)
True
----------
nosy: +PedanticHacker
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44054>
_______________________________________
More information about the Python-bugs-list
mailing list