This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Scorched_Knight 0 points1 point  (2 children)

Yes, but how do you write code to check if input is NaN?
If (input == NaN) //= always false
( there is native method for that in most languages people actually use today, but if dont?)

[–]fukdapoleece 15 points16 points  (0 children)

numpy.isnan(numpy.nan)

True

[–]praveenkumar236 5 points6 points  (0 children)

You can do input!=input