4

nan == nan is false?

view full story
linux-howto

http://www.daniweb.com – #include <limits> using namespace std; const double double_nan = numeric_limits<double>::quiet_NaN(); double x = double_nan; if (x == double_nan) cout << "OK" << endl; I dont get OK! Why? (General)