BloombergLP::bdldfp::DecimalConvertUtil_IntelDfp

This struct provides a namespace for utility functions that convert between the decimal floating-point types of bdldfp_decimal and various other formats.

Synopsis

Declared in <bdldfp_decimalconvertutil_inteldfp.h>

struct DecimalConvertUtil_IntelDfp;

Static Member Functions

NameDescription
decimal128FromBID Return the native implementation representation of the value of the same size base-10 floating-point value stored in Binary Integer Decimal format at the specified buffer address. The behavior is undefined unless buffer points to a memory area at least sizeof(decimal) in size containing a value in BID format.
decimal128FromDPD Return the native implementation representation of the value of the same size base-10 floating-point value stored in Densely Packed Decimal format at the specified buffer address. The behavior is undefined unless buffer points to a memory area at least sizeof(decimal) in size containing a value in DPD format.
decimal128ToBID DEPRECATED: Use decimalToBID instead.
decimal128ToDPD Same as the related overload above for decimal128ToDPD.
decimal128ToDouble Same as the related overload above for decimal128ToDouble.
decimal128ToFloat Same as the related overload above for decimal128ToFloat.
decimal32FromBID Same as the related overload above for decimal32FromBID.
decimal32FromDPD Same as the related overload above for decimal32FromDPD.
decimal32ToBID DEPRECATED: Use decimalToBID instead.
decimal32ToDPD DEPRECATED: Use decimalToDPD instead.
decimal32ToDouble Same as the related overload above for decimal32ToDouble.
decimal32ToFloat DEPRECATED: Use decimalToFloat instead.
decimal64FromBID Same as the related overload above for decimal64FromBID.
decimal64FromDPD DEPRECATED: Use decimalFromDPD instead.
decimal64ToBID Same as the related overload above for decimal64ToBID.
decimal64ToDPD Same as the related overload above for decimal64ToDPD.
decimal64ToDouble Same as the related overload above for decimal64ToDouble.
decimal64ToFloat Return a float having the value closest to the specified decimal.
decimalFromBID decimalFromBID overloads
decimalFromDPD decimalFromDPD overloads
decimalToBID decimalToBID overloads
decimalToDPD decimalToDPD overloads
decimalToDouble decimalToDouble overloads
decimalToFloat decimalToFloat overloads