On Dec 26, 2019, at 10:58, Richard Damon <[email protected]> wrote:
>
> Note, that NaN values are somewhat rare in most programs, I think they can
> only come about by explicitly requesting them (like float("nan") ) or perhaps
> with some of the more advanced math packages
You can get them easily just from math itself.
Or, once you can get infinite values, you can easily get nan values with just
basic arithmetic:
>>> 1e1000 - 1e1000
nan
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/AR5JESVD3VE266GLDPPXPYSJCXY6C2BV/
Code of Conduct: http://python.org/psf/codeofconduct/