std::float_round_style
std::float_round_style
Defined in header <limits> | ||
---|---|---|
enum float_round_style { round_indeterminate = -1, round_toward_zero = 0, round_to_nearest = 1, round_toward_infinity = 2, round_toward_neg_infinity = 3 }; |
Enumeration constants of type std::float_round_style
indicate the rounding style used by floating-point arithmetics whenever a result of an expression is stored in an object of a floating-point type. The values are: