std::numeric_limits::has_denorm

static const std::float_denorm_style has_denorm
(C++11 前)
static constexpr std::float_denorm_style has_denorm
(C++11 起)

std::numeric_limits<T>::has_denorm 的值鉴别浮点类型如何支持非正规值

标准特化

T std::numeric_limits<T>::has_denorm 的值
/* non-specialized */ std::denorm_absent
bool std::denorm_absent
char std::denorm_absent
signed char std::denorm_absent
unsigned char std::denorm_absent
wchar_t std::denorm_absent
char16_t std::denorm_absent
char32_t std::denorm_absent
short std::denorm_absent
unsigned short std::denorm_absent
int std::denorm_absent
unsigned int std::denorm_absent
long std::denorm_absent
unsigned long std::denorm_absent
long long std::denorm_absent
unsigned long long std::denorm_absent
float 通常为 std::denorm_present
double 通常为 std::denorm_present
long double 通常为 std::denorm_present

参阅

[静态]
返回给定浮点类型的最小正非正规值
(公开静态成员函数)
指示浮点非正规化模式
(枚举)

版本历史

  • (当前 | 先前 2017年4月26日 (三) 02:42Fruderica讨论 | 贡献. . (1,966字节) (-636). . (撤销)
  • 当前 | 先前 2013年7月2日 (二) 11:44P12bot讨论 | 贡献 . . (2,602字节) (-285). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 15:25P12bot讨论 | 贡献 . . (2,887字节) (+345). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月27日 (六) 11:51P12讨论 | 贡献 . . (2,542字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 06:00TranslationBot讨论 | 贡献. . (2,542字节) (-51). . (Translated from the English version using Google Translate) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 03:53P12讨论 | 贡献 . . (2,593字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (2,593字节) (+2,593). . (Translated from the English version using Google Translate)