Jun-08-2024, 07:21 AM
(This post was last modified: Jun-08-2024, 07:21 AM by Gribouillis.)
(Jun-08-2024, 06:19 AM)Pedroski55 Wrote: Is NaN a float?Here is what the official documentation says about NaN.
So nan is a float in Python because Python's float are based on the IEEE754 standard, which includes nan values. Note this is not specifically a Python problem. Python just uses the hardware implementation of floating point arithmetics.
« We can solve any problem by introducing an extra level of indirection »