Standard C++ Library Reference ISO/IEC (VERSION3)
Next
<limits>
Include the standard header <limits> to define the template class numeric_limits.
Explicit specializations of this class describe many arithmetic properties of the scalar types
(other than pointers).
namespace std {
enum float_denorm_style;
enum float_round_style;
template<class Ty>
class numeric_limits;
};
float_denorm_style
enum float_denorm_style {
denorm_indeterminate = -1,
denorm_absent = 0,
denorm_present = 1
};
The enumeration describes the various methods that an implementation can choose for
representing a denormalized floating-point value -- one too small to represent as a normalized
value:
denorm_indeterminate -- presence or absence of denormalized forms cannot be
determined at translation time
●
denorm_absent -- denormalized forms are absent●
denorm_present -- denormalized forms are present●
float_round_style
enum float_round_style {
round_indeterminate = -1,
round_toward_zero = 0,
round_to_nearest = 1,
round_toward_infinity = 2,
round_toward_neg_infinity = 3
};