This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vxgmichel
Recipients larry, lemburg, mark.dickinson, rhettinger, serhiy.storchaka, stutzbach, vstinner, vxgmichel
Date 2020-02-03.14:19:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580739578.23.0.57688715998.issue39484@roundup.psfhosted.org>
In-reply-to
Content
> The problem is that there is a double rounding in [...]

Actually `float(x) / 1e9` and `x / 1e9` seems to produce the same results:

```
import time
import itertools
now = time.time_ns()                                                                          
for x in itertools.count(now):
    assert float(x) / 1e9 == x / 1e9
```

> The formula `time = time_ns / 10**9` may be more accurate.

Well that seems to not be the case, see the plots and the corresponding code. I might have made a mistake though, please let me know if I got something wrong :)
History
Date User Action Args
2020-02-03 14:19:38vxgmichelsetrecipients: + vxgmichel, lemburg, rhettinger, mark.dickinson, vstinner, larry, stutzbach, serhiy.storchaka
2020-02-03 14:19:38vxgmichelsetmessageid: <1580739578.23.0.57688715998.issue39484@roundup.psfhosted.org>
2020-02-03 14:19:38vxgmichellinkissue39484 messages
2020-02-03 14:19:38vxgmichelcreate