[issue38432] ZeroDivisionError when inf is expected

2019-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See https://en.wikipedia.org/wiki/Denormal_number. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue38432] ZeroDivisionError when inf is expected

2019-10-10 Thread STINNER Victor
STINNER Victor added the comment: That's not a bug: 64-bit float of IEEE 754 rounds 1e-324 to 0.0. vstinner@apu$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>>

[issue38432] ZeroDivisionError when inf is expected

2019-10-10 Thread Behzad Seyfi
New submission from Behzad Seyfi : >>> 1/1e-323 inf >>> 1/1e-324 Traceback (most recent call last): File "", line 1, in ZeroDivisionError: float division by zero in a 1/x fraction, up to x = 1e-324 it is inf but when x = 1e-325 or little it throws ZeroDivisionError. It is not acceptable