Quote:
Originally Posted by Greg McKaskle
Equally fun fact:
When you compare anything and one of the elements is NaN, the result is false. Nan > 0 is false and Nan < 0 is false and Nan == 0 is false.
And it isn't just LV. This is what IEEE 754 says to do. And it makes sense, but at the same time will surprise you at times when you least expect it -- possibly causing shooters to misbehave, wormholes to form, etc.
|
Apparently this is how IsNaN is implemented in C#:
http://stackoverflow.com/a/1145462.