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 Kevin Braun
Recipients Kevin Braun
Date 2019-08-07.15:32:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565191965.7.0.701349886261.issue37787@roundup.psfhosted.org>
In-reply-to
Content
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 **.
History
Date User Action Args
2019-08-07 15:32:45Kevin Braunsetrecipients: + Kevin Braun
2019-08-07 15:32:45Kevin Braunsetmessageid: <1565191965.7.0.701349886261.issue37787@roundup.psfhosted.org>
2019-08-07 15:32:45Kevin Braunlinkissue37787 messages
2019-08-07 15:32:45Kevin Brauncreate