BloombergLP::bdldfp::DecimalConvertUtil::decimalToBID

decimalToBID overloads

Synopses

Declared in <bdldfp_decimalconvertutil.h>

Same as the overload taking Decimal32.

static
void
decimalToBID(
    unsigned char* buffer,
    Decimal128 decimal);
» more...

Populate the specified buffer with the Binary Integer Decimal (BID) representation of the specified decimal value. The BID representations of Decimal32, Decimal64, and Decimal128 require 4, 8, and 16 bytes respectively. The behavior is undefined unless buffer points to a contiguous sequence of at least sizeof(decimal) bytes. Note that the BID representation is defined in section 3.5 of IEEE 754-2008.

static
void
decimalToBID(
    unsigned char* buffer,
    Decimal32 decimal);
» more...

Same as the overload taking Decimal32.

static
void
decimalToBID(
    unsigned char* buffer,
    Decimal64 decimal);
» more...