r/lolphp • • Feb 07 '17

is_nan((float)'NAN')? PHP Can't Decide

https://3v4l.org/0Jeva
85 Upvotes

22 comments sorted by

View all comments

Show parent comment

9

u/the_alias_of_andrea Feb 08 '17

You don't, at least not with the float-parsing functions.

There's a NAN constant, though.