toMsDecimal

Converts the specified value to/from Microsoft _decimal data type;

  1. DECIMAL toMsDecimal(D x)
    toMsDecimal
    (
    D
    )
    (
    auto const ref D x
    )
  2. D fromMsDecimal(DECIMAL x)

Throws

InvalidOperationExceptionx is NaN
OverflowExceptionx is infinite or outside the DECIMAL limits
UnderflowExceptionx is too small to be represented as DECIMAL
InexactExceptionx cannot be represented exactly

Notes: The Microsoft _decimal data type is stored as a 96 bit integral scaled by a variable exponent between 10-28 and 100.

Meta