numeric_limits::has_denorm

测试类型是否允许非规范化的值。

static const float_denorm_style has_denorm = denorm_absent;

返回值

枚举类型 const 值float_denorm_style,指示类型是否允许非规范化的值。

备注

成员存储使非规范化值的浮点类型,有效一个可变的指数 denorm_present 位。

示例

// numeric_limits_has_denorm.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>

using namespace std;

int main( )
{
   cout << "Whether float objects allow denormalized values: "
        << numeric_limits<float>::has_denorm 
        << endl;
   cout << "Whether double objects allow denormalized values: "
        << numeric_limits<double>::has_denorm 
        << endl;
   cout << "Whether long int objects allow denormalized values: " 
        << numeric_limits<long int>::has_denorm 
        << endl;
}
  

要求

页眉: <限制>

命名空间: std

请参见

参考

strstreambuf 类