numeric_limits::min_exponent10
傳回浮點型別可以表示為限制值的最大負整數指數,當十進位引發該功能時。
static const int min_exponent10 = 0;
傳回值
最小整數十進位指數能由型別。
備註
成員函式的浮點型別才有意義。 min_exponent10 型別的值 FLT_MIN_10_EXP float。
範例
// 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;
}
需求
標題: <。>
命名空間: std