◐ Shell
clean mode source ↗

Message 249303 - Python tracker

OK, I looked at the wrong place.  Here is the correct example:

>>> x = float.fromhex('0x1.38f312b1b36bdp-1')
>>> x
0.6112295
>>> round(x, 6)
0.611229
>>> timedelta(0, x).microseconds
611230

but I no longer remember whether we concluded that timedelta got it wrong or round or both or neither. :-)