std::float_round_style
来自 cppreference.cn
< cpp | types | numeric limits
定义于头文件 <limits> |
||
enum float_round_style { round_indeterminate = -1, |
||
std::float_round_style 类型的枚举常量指示浮点运算在表达式结果存储到浮点类型对象时使用的舍入风格。其值为
[编辑] 枚举常量
名称 | 定义 |
std::round_indeterminate | 舍入风格无法确定 |
std::round_toward_zero | 向零舍入 |
std::round_to_nearest | 向最接近的可表示值舍入 |
std::round_toward_infinity | 向正无穷舍入 |
std::round_toward_neg_infinity | 向负无穷舍入 |
[编辑] 参见
[静态] |
标识类型使用的舍入风格 (公开静态成员常量) |
浮点舍入方向 (宏常量) |