[issue39484] time_ns() and time() cannot be compared on windows
Mark Dickinson
report at bugs.python.org
Sun Feb 9 10:17:18 EST 2020
Mark Dickinson <dickinsm at gmail.com> added the comment:
> Yes, but you get the first 1 bit for free.
Not really. :-) That's a detail of how floating-point numbers happen to be stored; it's not really relevant here. It doesn't affect the fact that IEEE 754 binary64 floats have 53 bits of *precision*, so using 31 for the integer part leaves only 22 for the fractional part, so we're 8 bits short, not 7.
(If you really want, you can subtract 30 from 52 instead of 31 from 53, but it's just a more complicated way of doing the same calculation, and doesn't change the result.)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39484>
_______________________________________
More information about the Python-bugs-list
mailing list