std::numeric_limits<T>::max_exponent10
Min standard notice:
The value of std::numeric_limits
# Declarations
static const int max_exponent10;
(until C++11)
static constexpr int max_exponent10;
(since C++11)
# Example
#include <iostream>
#include <limits>
int main()
{
std::cout << "max() = " << std::numeric_limits<float>::max() << '\n'
<< "max_exponent10 = " << std::numeric_limits<float>::max_exponent10 << '\n'
<< std::hexfloat << '\n'
<< "max() = " << std::numeric_limits<float>::max() << '\n'
<< "max_exponent = " << std::numeric_limits<float>::max_exponent << '\n';
}