FLT_ROUNDS
FLT[医]子弹
Defined in header | | |
---|---|---|
#define FLT_ROUNDS /* implementation defined */ | | (since C++11) |
指定浮点算术运算的当前舍入方向.
Value | Explanation |
---|---|
-1 | the default rounding direction is not known |
0 | toward zero, FE_TOWARDZERO |
1 | to nearest, FE_TONEAREST |
2 | towards positive infinity, FE_UPWARD |
3 | towards negative infinity, FE_DOWNWARD |
other values | implementation-defined behavior |
注记
舍入模式可以用std::fesetround
和FLT_ROUNDS
反映了这种变化。
FLT的可能值[医]的可能值匹配。std::float_round_style
,由std::numeric_limits::round_style
...
另见
float_round_style | indicates floating-point rounding modes (enum) |
---|---|
fegetroundfesetround (C++11)(C++11) | gets or sets rounding direction (function) |
C.FLT文件[医]子弹
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。