namespace std {
enum float_round_style {
round_indeterminate = -1,
round_toward_zero = 0,
round_to_nearest = 1,
round_toward_infinity = 2,
round_toward_neg_infinity = 3
};
}
The rounding mode for floating-point arithmetic is characterized by the
values:
round_indeterminate
if the rounding style is indeterminable
round_toward_zero
if the rounding style is toward zero
round_to_nearest
if the rounding style is to the nearest representable value
round_toward_infinity
if the rounding style is toward infinity
round_toward_neg_infinity
if the rounding style is toward negative infinity
namespace std {
enum float_denorm_style {
denorm_indeterminate = -1,
denorm_absent = 0,
denorm_present = 1
};
}
The presence or absence of subnormal numbers (variable number of exponent bits)
is characterized by the values:
denorm_indeterminate
if it cannot be determined whether or not the type allows subnormal values
denorm_absent
if the type does not allow subnormal values
denorm_present
if the type does allow subnormal values