Integer checks

Is there an Standard Library function that can check to see if a number is, in fact, a number? Or would I have to define a function of my own?

Thanks in advance.
Last edited on
There is a standard library function isnan() which will check if a floating-point number is indeed a number: http://en.cppreference.com/w/cpp/numeric/math/isnan http://www.cplusplus.com/reference/cmath/isnan/
Integer numbers are always numbers, that guarantee is part of the type system.
Topic archived. No new replies allowed.