共用方式為


numeric_limits::min_exponent10

傳回浮點型別可以表示為限制值的最大負數整數的指數,當十進位引發該電源時。

static const int min_exponent10 = 0;

傳回值

最小整數的Base 10指數能由型別。

備註

成員函式的浮點型別才有意義。 min_exponent10 是型別的 float值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

請參閱

參考

strstreambuf Class