Message409163
Alright that helps. I guess I now understand what's happening here. Here are the two numbers in question:
>>> M = int('1'*53+'0'*971, 2)
>>> N = int('1'*53+'0'+'1'*970, 2)
M is the largest number in binary64 range, while N is the largest number that does not emit an OverflowError when converted to binary64. N+1 will emit that error. N-M == 2**970-1 which means N is larger than M that caused the confusion. |
|
Date |
User |
Action |
Args |
2021-12-24 23:40:21 | cykerway | set | recipients:
+ cykerway, mark.dickinson, steven.daprano |
2021-12-24 23:40:21 | cykerway | set | messageid: <1640389221.41.0.938480898517.issue46173@roundup.psfhosted.org> |
2021-12-24 23:40:21 | cykerway | link | issue46173 messages |
2021-12-24 23:40:21 | cykerway | create | |
|