[issue44054] 2**53+1 != float(2**53+1)

Christian Heimes report at bugs.python.org
Thu May 6 06:32:16 EDT 2021


Christian Heimes <lists at cheimes.de> added the comment:

2**53-1 is also the largest safe rational number in JavaScript and JSON where double precision floats and ints behave the same, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER

----------
nosy: +christian.heimes

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44054>
_______________________________________


More information about the Python-bugs-list mailing list