Is there an isnan() function in C++?

I had solved this by using isnan() form , which doesn’t exist in , which I was #include ing at first.

According to the IEEE standard, NaN values have the odd property that comparisons involving them are always false. That is, for a float f, f != f will be true only if f is NaN.