half Limits¶
Constants¶
HALF_DENORM_MINSmallest positive denormalized half.
HALF_NRM_MINSmallest positive normalized half.
HALF_MINSmallest positive normalized half.
HALF_MAXLargest positive half.
HALF_EPSILONSmallest positive e for which half(1.0 + e) != half(1.0)
HALF_MANT_DIGNumber of digits in mantissa (significand + hidden leading 1)
HALF_DIGNumber of base 10 digits that can be represented without change:
floor( (
HALF_MANT_DIG- 1) * log10(2) ) => 3.01… -> 3HALF_DECIMAL_DIGNumber of base-10 digits that are necessary to uniquely represent all distinct values:
ceil(
HALF_MANT_DIG* log10(2) + 1) => 4.31… -> 5HALF_RADIXBase of the exponent.
HALF_DENORM_MIN_EXPMinimum negative integer such that
HALF_RADIXraised to the power of one less than that integer is a normalized half.HALF_MAX_EXPMaximum positive integer such that
HALF_RADIXraised to the power of one less than that integer is a normalized half.HALF_DENORM_MIN_10_EXPMinimum positive integer such that 10 raised to that power is a normalized half.
HALF_MAX_10_EXPMaximum positive integer such that 10 raised to that power is a normalized half.
std::numeric_limits<half>¶
The half type provides specializations for
std::numeric_limits<half>:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|