Just a question that I\'m kind of confused about
So I was messing around with float(\'inf\') and kind of wondering what it is used for.
float(\'inf\')
Also I n
You say:
when i do nan - inf i dont get -inf i get nan
nan - inf
-inf
nan
This is because any operation containing NaN as an operand would return NaN.
NaN
A comparison with NaN would return an unordered result.
>>> float('Inf') == float('Inf') True >>> float('NaN') == float('NaN') False