
What's wrong with 1e1000?
On Fri, Sep 11, 2020 at 11:51 AM David Mertz mertz@gnosis.cx wrote:
On Fri, Sep 11, 2020 at 6:48 AM Stephen J. Turnbull
inf and nan only exist in Python the
language (including builtins) via casting strings to floats (there are
no arithmetic operations that produce them).
import sys; sys.version
'3.8.3 (default, May 19 2020, 18:47:26) \n[GCC 7.3.0]'
from math import pi as π exp = 2**9 a = (22/7) ** exp1 b = π ** exp1 a
4.2679182652117097e+254
a * a
inf
(a*a)/(b*b)
nan
The dead increasingly dominate and strangle both the living and the not-yet born. Vampiric capital and undead corporate persons abuse the lives and control the thoughts of homo faber. Ideas, once born, become abortifacients against new conceptions. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/SI55GC... Code of Conduct: http://python.org/psf/codeofconduct/