[issue39484] time_ns() and time() cannot be compared on windows

Eryk Sun report at bugs.python.org
Mon Feb 10 02:34:39 EST 2020


Eryk Sun <eryksun at gmail.com> added the comment:

> I'm not sure what you're suggesting here. I shouldn't try to understand 
> how floating-point numbers are stored?

No, that's the furthest thought from my mind. I meant only that I would not recommend using one's own understanding of floating-point numbers instead of something like math.nextafter. Even if I correctly understand the general case, there are probably corner cases that I'm not aware of.

----------

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


More information about the Python-bugs-list mailing list