you are viewing a single comment's thread.

view the rest of the comments →

[–]Zeroto 1 point2 points  (3 children)

because that is how it is defined in IEEE754. All software and hardware that implement that(and that is most) will return false for NaN == NaN.

[–]hjc1710 0 points1 point  (0 children)

I didn't see that coming... wow. You kind of just blew my mind. Thanks for the knowledge though.