BloombergLP::bdldfp::DecimalConvertUtil::decimalFromDPD

Store, into the specified decimal, the native implementation representation of the value of the same size base-10 floating point value represented 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.

Synopsis

Declared in <bdldfp_decimalconvertutil.h>

static
void
decimalFromDPD(
    Decimal32* decimal,
    unsigned char const* buffer);