Strange behaviour with numbers in exponential notation
Nobody
nobody at nowhere.invalid
Sun Sep 4 04:29:08 EDT 2016
On Fri, 02 Sep 2016 18:18:08 +0200, Christian Gollwitzer wrote:
> 1e26 denotes a *floating point number* Floating point has finite
> precision, in CPython it is a 64bit IEEE number. The largest exact
> integer there is 2**53 (~10^16), everything beyond cannot be accurately
> represented.
Uh, that's wrong. All integers smaller than 2**53 can be represented
exactly. Some, but not all, of the integers above 2**53 can be represented
exactly.
More information about the Python-list
mailing list