Message349168
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]
I believe 2**-1074 is the smallest denormalized number for Python on my system (Windows), so I would expect 2**-1075 to yield 0.0, but it does not. Instead:
>>> 2**-1074==2**-1075
True
>>> (2**-1074).hex()
'0x0.0000000000001p-1022'
>>> (2**-1075).hex()
'0x0.0000000000001p-1022'
And, the above is not consistent with the following:
>>> (2**-1074)/2
0.0
>>> (2**-1074)/2 == 2**-1075
False
>>> 1/2**1075
0.0
>>> 1/2**1075 == 2**-1075
False
Given the above observations, I suspect there is a bug in **. |
|
Date |
User |
Action |
Args |
2019-08-07 15:32:45 | Kevin Braun | set | recipients:
+ Kevin Braun |
2019-08-07 15:32:45 | Kevin Braun | set | messageid: <1565191965.7.0.701349886261.issue37787@roundup.psfhosted.org> |
2019-08-07 15:32:45 | Kevin Braun | link | issue37787 messages |
2019-08-07 15:32:45 | Kevin Braun | create | |
|