It is defined as:
| 1 2 3 4 5 6 7 |
|
With the following possible values:
| label | value | meaning |
|---|---|---|
| round_intermediate | -1 | Rounding style cannot be determined at compile time |
| round_toward_zero | 0 | Rounding style toward zero |
| round_to_nearest | 1 | Rounding style to the nearest representable value |
| round_toward_infinity | 2 | Rounding style toward infinity |
| round_toward_neg_infinity | 3 | Rounding style toward negative infinity |
The default value in the non-specialized numeric_limits class for its round_style member is round_toward_zero (0).
See also
| numeric_limits | Numeric limits type (class template) |
