Is there a constant in the C++ std lib somewhere that means something like “largest representable number” and “smallest representable number”? In Matlab, we have things like EPS, realmax, and realmin. I was wondering if there was an equivalent for C++.
Is there a constant in the C++ std lib somewhere that means something like
Share
In the limits header you can find a templatized function for max and min,
Here is some reference: http://www.cplusplus.com/reference/std/limits/numeric_limits/