FP_NORMAL, FP_SUBNORMAL, FP_ZERO, FP_INFINITE, FP_NAN
来自cppreference.com
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <cmath> 中定义
|
||
#define FP_NORMAL /*implementation defined*/ |
(C++11 起) | |
#define FP_SUBNORMAL /*implementation defined*/ |
(C++11 起) | |
#define FP_ZERO /*implementation defined*/ |
(C++11 起) | |
#define FP_INFINITE /*implementation defined*/ |
(C++11 起) | |
#define FP_NAN /*implementation defined*/ |
(C++11 起) | |
FP_NORMAL
,FP_SUBNORMAL
,FP_ZERO
,FP_INFINITE
,FP_NAN
宏,分别代表了不同类别的浮点数。它们都扩展为一个整数常量表达式.原文:
The
FP_NORMAL
, FP_SUBNORMAL
, FP_ZERO
, FP_INFINITE
, FP_NAN
macros each represent a distinct category of floating-point numbers. They all expand to an integer constant expression. 常数
|
Explanation |
FP_NORMAL
|
表明该值是“正常的”,即不是无穷大,弱智者,而不是一个数或零
原文: indicates that the value is normal, i.e. not an infinity, subnormal, not-a-number or zero |
FP_SUBNORMAL
|
表明该值是“低于正常”
原文: indicates that the value is subnormal |
FP_ZERO
|
表示该值是正的或负的零
原文: indicates that the value is positive or negative zero |
FP_INFINITE
|
表示该值无法表示的基本类型(正或负无穷)
原文: indicates that the value is not representable by the underlying type (positive or negative infinity) |
FP_NAN
|
表明该值不是一个数字(NaN)
原文: indicates that the value is not-a-number (NaN) |
[编辑] 另请参阅
(C++11) |
分类浮点值 原文: categorizes the given floating point value (函数) |