|
fennec
|
This header defines fennec::numeric_limits which contains info regarding the limits of numeric types including floats and integers. There are overloads for all builtin types, and overloads for other types are included in their own header.
| Member | Description |
|---|---|
| Traits | |
is_specialized |
Check if the template is specialized for TypeT. |
is_signed |
Check if TypeT is signed. |
is_integer |
Check if TypeT is of an integral type. |
is_exact |
Check if TypeT is exact in its precision. |
has_infinity |
Check if TypeT can hold a value representing infinity. |
has_quiet_nan |
Check if TypeT can hold a non-signaling nan. |
has_signaling_nan |
Check if TypeT can hold a signaling nan. |
is_iec559 |
Check if a TypeT representing a float is IEC 559 or IEEE 754. |
is_bounded |
Check if TypeT represents a finite set of values. |
is_modulo |
Check if TypeT can handle modulo arithmetic. |
tinyness_before |
Check if TypeT checks for tinyness before rounding. |
traps |
Check if TypeT can cause operations to trap. |
| Binary | |
radix |
Get the base representation of the type. |
digits |
Get the number of radix digits TypeT represents. |
digits10 |
Get the number of decimal digits TypeT represents. |
max_digits10 |
Get the maximum number of decimal digits TypeT represents. |
min_exponent |
Get the minimum number of radix digits that represent the exponent of TypeT. |
min_exponent10 |
Get the minimum number of decimal digits that represent the exponent of TypeT. |
max_exponent |
Get the maximum number of radix digits that represent the exponent of TypeT. |
max_exponent10 |
Get the maximum number of decimal digits that represent the exponent of TypeT. |
| Limits | |
min() |
Returns the minimum finite value of TypeT. |
max() |
Returns the maximum finite value of TypeT. |
lowest() |
Returns the smallest positive value of TypeT. |
epsilon() |
Returns the difference between 1.0 and the next representable value. |
round_error() |
Returns the max rounding error of TypeT. |
infinity() |
Returns a value of TypeT holding a positive infinity. |
quiet_NaN() |
Returns a value of TypeT holding a quiet NaN. |
signaling_NaN() |
Returns a value of TypeT holding a signaling NaN. |
denorm_min() |
Returns a value of TypeT holding the smallest positive subnormal. |