返回类型的最小的规范化值。
static Type min( ) throw( );
返回值
类型中的规范化值。
备注
最小的规范化值为类型的 int 和 FLT_MIN INT_MIN 类型的 float。 返回值是有意义的,则是 is_boundedis_signedtrue,或者为 false。
示例
// numeric_limits_min.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "The minimum value for type float is: "
<< numeric_limits<float>::min( )
<< endl;
cout << "The minimum value for type double is: "
<< numeric_limits<double>::min( )
<< endl;
cout << "The minimum value for type int is: "
<< numeric_limits<int>::min( )
<< endl;
cout << "The minimum value for type short int is: "
<< numeric_limits<short int>::min( )
<< endl;
}
要求
页眉: <限制>
命名空间: std