Message361314
> int/int is less accurate than float/float for t=1580301619906185300
No, int/int is more accurate here. If a and b are ints, a / b is always correctly rounded on an IEEE 754 system, while float(a) / float(b) will not necessarily give a correctly rounded result. So for an integer a, `a / 10**9` will _always_ be at least as accurate as `a / 1e9`. |
|
Date |
User |
Action |
Args |
2020-02-03 17:51:24 | mark.dickinson | set | recipients:
+ mark.dickinson, lemburg, rhettinger, vstinner, larry, stutzbach, serhiy.storchaka, vxgmichel |
2020-02-03 17:51:23 | mark.dickinson | set | messageid: <1580752283.97.0.331263318845.issue39484@roundup.psfhosted.org> |
2020-02-03 17:51:23 | mark.dickinson | link | issue39484 messages |
2020-02-03 17:51:23 | mark.dickinson | create | |
|