toMsCurrency

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

  1. long toMsCurrency(D x)
    long
    toMsCurrency
    (
    D
    )
    (
    auto const ref D x
    )
  2. D fromMsCurrency(ulong x)

Throws

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

Notes: The Microsoft currency data type is stored as long always scaled by 10-4

Meta