C++ 1.#QNAN0;1.#QNAN0 原因:估计是数值溢出了。 解决 bool IsFloatValid(float f) { return((DWORD&)f&0x7f800000)!=0x7f800000; }