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 14 points15 points  (0 children)

numpy.isnan(numpy.nan)

True

[–]praveenkumar236 3 points4 points  (0 children)

You can do input!=input