返回浮点类型可以表示为受限的值的最大负数集成指数,当基础十引发对该功能不变。
static const int min_exponent10 = 0;
返回值
最小集成foundation 10指数可以可用由类型。
备注
成员函数用于浮点类型才有意义的。min_exponent10 是类型的 浮动值FLT_MIN_10_EXP。
示例
// 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;
}
要求
标头: <limits>
命名空间: std