[Python-ideas] Suggestion: Extend integers to include iNaN
mertz at gnosis.cx
Sat Sep 29 07:47:33 EDT 2018
On Sat, Sep 29, 2018 at 2:32 AM Steve Barnes <gadgetsteve at live.co.uk> wrote:
> One of the strengths of the IEEE float, (to set against its many
> weaknesses), is the presence of the magic value NaN. Not a Number, or
> NaA, is especially useful in that it is a valid value in any
> mathematical operation, (always returning NaN), or comparison, (always
> returning False).
>>> nan = float('nan')
... most operations. :-)
Keeping medicines from the bloodstreams of the sick; food
from the bellies of the hungry; books from the hands of the
uneducated; technology from the underdeveloped; and putting
advocates of freedom in prisons. Intellectual property is
to the 21st century what the slave trade was to the 16th.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas