[issue39484] time_ns() and time() cannot be compared on windows
Vincent Michel
report at bugs.python.org
Mon Feb 3 11:35:22 EST 2020
Vincent Michel <vxgmichel at gmail.com> added the comment:
@serhiy.storchaka
> 1580301619906185300/10**9 is more accurate than 1580301619906185300/1e9.
I don't know exactly what `F` represents in your example but here is what I get:
>>> r = 1580301619906185300
>>> int(r / 10**9 * 10**9) - r
172
>>> int(r / 1e9 * 10**9) - r
-84
@vstinner
> I suggest to only document in time.time() is less accurate than time.time_ns().
Sounds good!
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39484>
_______________________________________
More information about the Python-bugs-list
mailing list