首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

FLT_ROUNDS

Defined in header <cfloat>

#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::fesetroundFLT_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文件[医]子弹

代码语言:txt
复制
 © cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券