This is the full specialization of bslmf::FloatingTypeStructuralTraits for the double type. See the individual members for documentation.

Synopsis

Declared in <bslmf_floatingtypestructuraltraits.h>

template<>
struct FloatingTypeStructuralTraits<double>;

Type Aliases

Name

Description

FloatType

Alias for the floating‐point type described by this specialization.

UintType

Alias for the size‐equivalent unsigned integer type.

Static Member Functions

Name

Description

adjustMantissaForHexDigits

Adjust the specified ieeeMantissa bits for hexfloat conversion. This method is a no‐op for double type.

toFloatType

Converts the bits of the specified size‐equivalent unsigned integer uIntValue into the "original" floating point type.

toUintType

Converts the bits of the specified floating point value into the size‐equivalent unsigned integer type.

Static Data Members

Name

Description

k_DENORM_MANTISSA_MASK

Mask for the fraction bits of a subnormal value (no leading bit).

k_EXPONENT_BIAS

Bias added to the true exponent in the encoded exponent field.

k_EXPONENT_BITS

Number of bits in the IEEE‐754 exponent field.

k_EXPONENT_MASK

Mask for the unshifted exponent field bits.

k_EXPONENT_SHIFT

Bit offset of the exponent field within the integer representation.

k_GENERAL_MAX_OUTPUT_LENGTH

Maximum required buffer size for std::to_chars_format::general with the maximum precision.

k_MANTISSA_BITS

Number of significand bits including the implicit leading bit.

k_MANTISSA_HEX_DIGITS

The hex digits needed to represent the mantissa in a hexfloat.

k_MAX_BINARY_EXPONENT

Maximum unbiased binary exponent for a finite normal value.

k_MAX_FIXED_PRECISION

The maximum meaningful precision for std::to_chars_format::fixed.

k_MAX_SCIENTIFIC_PRECISION

Maximum meaningful precision for std::to_chars_format::scientific.

k_MAX_VALUE

Largest finite double value (DBL_MAX).

k_MIN_BINARY_EXPONENT

Minimum unbiased binary exponent for a finite normal value.

k_MIN_VALUE

Smallest positive normalized double value (DBL_MIN).

k_NORMAL_MANTISSA_MASK

Mask for the significand of a normal value, including the leading bit.

k_SHIFTED_EXPONENT_MASK

Mask for the exponent field in its natural position in the representation.

k_SHIFTED_SIGN_MASK

Mask for the sign bit in its natural position in the representation.

k_SIGN_SHIFT

Bit offset of the sign bit within the integer representation.

k_SPEC_NAN_MANTISSA_MASK

Mask selecting the quiet‐NaN indicator bit in the mantissa.

Created with MrDocs