fromMsCurrency

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

  1. long toMsCurrency(D x)
  2. D fromMsCurrency(ulong x)
    D
    fromMsCurrency
    (
    D
    )
    (
    const 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