Floating point equality [was Re: What exactly is "exact" (was Clean Singleton Docstrings)]
Ben Bacarisse
ben.usenet at bsb.me.uk
Thu Jul 21 19:54:35 EDT 2016
Steven D'Aprano <steve at pearwood.info> writes:
<snip>
> Or you might be using a language like Javascript, which intentionally has
> only floats for numbers. That's okay, you can still perform exact integer
> arithmetic, so long as you stay within the bounds of ±2**16.
Small point: it's 2**52.
<snip>
--
Ben.
More information about the Python-list
mailing list