toDPD

Converts the specified value from internal encoding from/to densely packed decimal encoding Notes: Decimal values are represented internaly using binary integer _decimal encoding, supported by Intel (BID). This function converts the specified value to/from densely packed _decimal encoding, supported by IBM (DPD). Please note that a DPD encoded _decimal cannot be passed to a function from this module, there is no way to determine if a _decimal value is BID-encoded or DPD-encoded, all functions will assume a BID-encoding.

  1. decimal32 toDPD(decimal32 x)
  2. decimal64 toDPD(decimal64 x)
    @safe pure nothrow @nogc
    @IEEECompliant("encodeDecimal", 23)
    toDPD
    (
    const decimal64 x
    )
  3. decimal128 toDPD(decimal128 x)

Meta