std::float_round_style
来自cppreference.com
< 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 | 向负无穷大舍入 |
参阅
| [静态] |
鉴别类型所用的舍入模式 (公开静态成员常量) |
| 浮点舍入方向 (宏常量) |