numeric_limits::min_exponent10
Returns the maximum negative integral exponent that the floating-point type can represent as a finite value when a base of ten is raised to that power.
static const int min_exponent10 = 0;
Return Value
The minimum integral base 10 exponent representable by the type.
Remarks
The member function is meaningful only for floating-point types. The min_exponent10 is the value FLT_MIN_10_EXP for type float.
Example
// numeric_limits_min_exponent10.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "The minimum base 10 exponent for type float is: "
<< numeric_limits<float>::min_exponent10
<< endl;
cout << "The minimum base 10 exponent for type double is: "
<< numeric_limits<double>::min_exponent10
<< endl;
cout << "The minimum base 10 exponent for type long double is: "
<< numeric_limits<long double>::min_exponent10
<< endl;
}
The minimum base 10 exponent for type float is: -37 The minimum base 10 exponent for type double is: -307 The minimum base 10 exponent for type long double is: -307
Requirements
Header: <limits>
Namespace: std