BloombergLP::bslmf::FloatingTypeStructuralTraits<float>

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

Synopsis

Declared in <bslmf_floatingtypestructuraltraits.h>

template<>
struct FloatingTypeStructuralTraits<float>;

Type Aliases

NameDescription
FloatType
UintType The floating point type

Static Member Functions

NameDescription
adjustMantissaForHexDigits Adjust the specified ieeeMantissa bits for hexfloat conversion. This method is needed because float needs adjustment and double doesn't.
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

NameDescription
k_DENORM_MANTISSA_MASK
k_EXPONENT_BIAS
k_EXPONENT_BITS
k_EXPONENT_MASK
k_EXPONENT_SHIFT
k_GENERAL_MAX_OUTPUT_LENGTH Maximum required buffer size for std::to_chars_format::general with the maximum precision.
k_MANTISSA_BITS
k_MANTISSA_HEX_DIGITS The hex digits needed to represent the mantissa in a hexfloat.
k_MAX_BINARY_EXPONENT
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
k_MIN_BINARY_EXPONENT
k_MIN_VALUE
k_NORMAL_MANTISSA_MASK
k_SHIFTED_EXPONENT_MASK
k_SHIFTED_SIGN_MASK
k_SIGN_SHIFT
k_SPEC_NAN_MANTISSA_MASK