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 larry
Recipients larry, lemburg, mark.dickinson, rhettinger, serhiy.storchaka, stutzbach, vstinner, vxgmichel
Date 2020-02-03.14:28:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> The problem is that there is a double rounding in
>     time = float(time_ns) / 1e9
> 1. When convert time_ns to float.
> 2. When divide it by 1e9.

I'm pretty sure that in Python 3, if you say
   c = a / b
and a and b are both "single-digit" integers, it first converts them both into doubles and then performs the divide.  See long_true_divide() in Objects/longobject.c, starting (currently) at line 3938.
Date User Action Args
2020-02-03 14:28:55larrysetrecipients: + larry, lemburg, rhettinger, mark.dickinson, vstinner, stutzbach, serhiy.storchaka, vxgmichel
2020-02-03 14:28:55larrysetmessageid: <>
2020-02-03 14:28:55larrylinkissue39484 messages
2020-02-03 14:28:55larrycreate