half  2.2
IEEE 754-based half-precision floating-point library
numeric_limits< half_float::half > Class Reference

Numeric limits for half-precision floats. More...

Static Public Member Functions

static constexpr half_float::half min () noexcept
 Smallest positive normal value.
 
static constexpr half_float::half lowest () noexcept
 Smallest finite value.
 
static constexpr half_float::half max () noexcept
 Largest finite value.
 
static constexpr half_float::half epsilon () noexcept
 Difference between 1 and next representable value.
 
static constexpr half_float::half round_error () noexcept
 Maximum rounding error in ULP (units in the last place).
 
static constexpr half_float::half infinity () noexcept
 Positive infinity.
 
static constexpr half_float::half quiet_NaN () noexcept
 Quiet NaN.
 
static constexpr half_float::half signaling_NaN () noexcept
 Signaling NaN.
 
static constexpr half_float::half denorm_min () noexcept
 Smallest positive subnormal value.
 

Static Public Attributes

static constexpr bool is_specialized = true
 Is template specialization.
 
static constexpr bool is_signed = true
 Supports signed values.
 
static constexpr bool is_integer = false
 Is not an integer type.
 
static constexpr bool is_exact = false
 Is not exact.
 
static constexpr bool is_modulo = false
 Doesn't provide modulo arithmetic.
 
static constexpr bool is_bounded = true
 Has a finite set of values.
 
static constexpr bool is_iec559 = true
 IEEE conformant.
 
static constexpr bool has_infinity = true
 Supports infinity.
 
static constexpr bool has_quiet_NaN = true
 Supports quiet NaNs.
 
static constexpr bool has_signaling_NaN = true
 Supports signaling NaNs.
 
static constexpr float_denorm_style has_denorm = denorm_present
 Supports subnormal values.
 
static constexpr bool has_denorm_loss = false
 Supports no denormalization detection.
 
static constexpr bool traps = false
 Traps only if HALF_ERRHANDLING_THROW_... is acitvated.
 
static constexpr bool tinyness_before = false
 Does not support no pre-rounding underflow detection.
 
static constexpr float_round_style round_style = half_float::half::round_style
 Rounding mode.
 
static constexpr int digits = 11
 Significant digits.
 
static constexpr int digits10 = 3
 Significant decimal digits.
 
static constexpr int max_digits10 = 5
 Required decimal digits to represent all possible values.
 
static constexpr int radix = 2
 Number base.
 
static constexpr int min_exponent = -13
 One more than smallest exponent.
 
static constexpr int min_exponent10 = -4
 Smallest normalized representable power of 10.
 
static constexpr int max_exponent = 16
 One more than largest exponent.
 
static constexpr int max_exponent10 = 4
 Largest finitely representable power of 10.
 

Detailed Description

Numeric limits for half-precision floats.

See also: Documentation for std::numeric_limits


The documentation for this class was generated from the following file: