We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9377ab6 commit ecefabeCopy full SHA for ecefabe
Lib/_pydecimal.py
@@ -451,9 +451,12 @@ def IEEEContext(bits, /):
451
# See https://github.com/python/cpython/issues/140036 for details.
452
453
_LOG_10_BASE_2_LO = float.fromhex('0x1.a934f0979a371p+1')
454
+_LOG_10_BASE_2_LO -= _math.ulp(_LOG_10_BASE_2_LO) * 20
455
+assert _LOG_10_BASE_2_LO > 0
456
assert pow(2, _LOG_10_BASE_2_LO) < 10
457
458
_LOG_10_BASE_2_HI = float.fromhex('0x1.a934f0979a372p+1')
459
+_LOG_10_BASE_2_HI += _math.ulp(_LOG_10_BASE_2_HI) * 20
460
assert pow(2, _LOG_10_BASE_2_HI) > 10
461
462
0 commit comments