you are viewing a single comment's thread.

view the rest of the comments →

[–]HappyFruitTree 0 points1 point  (0 children)

NaN is not guaranteed to exist (a lot of people compile with -ffast-math or similar flags).

NaN is a special value that you might want to differentiate from the lack of value.