How to check the floating variable contain real numbers or not in c ++?

advertisements

How to check the float variable contain Real Numbers or not in C++ ?

ex: -1.#IND000 my value

How to determine whether it is Real numbers or like above numbers .


There are functions like std::isnan in header <cmath>.