std::numeric_limits<T>::min_exponent

The value of std::numeric_limits::min_exponent is the lowest negative number n such that (\scriptsize r^{n-1})rn-1, where r is std::numeric_limits::radix, is a valid normalized value of the floating-point type T.

# Declarations

static const int min_exponent;

(until C++11)

static constexpr int min_exponent;

(since C++11)

# Example

#include <iostream>
#include <limits>
 
int main()
{
    std::cout << "min() = " << std::numeric_limits<float>::min() << '\n'
              << "min_exponent10 = " << std::numeric_limits<float>::min_exponent10 << '\n'
              << std::hexfloat << '\n'
              << "min() = " << std::numeric_limits<float>::min() << '\n'
              << "min_exponent = " << std::numeric_limits<float>::min_exponent << '\n';
}

# See also