参考链接: C++ Nan()
NaN means “not a number,” and is used for floating point operations. ...such as infinity (with distinct values for positive vs. negative infinity) and the not a number value, NaN...If your compiler produces a NaN, it has the unusual property that it is not equal to any value, including...For example, if a is NaN, then a == a is false....In fact, if a is NaN, then a will be neither less than, equal to, nor greater than any value including