toMsCurrency

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

long
toMsCurrency
(
D
)
(
auto const ref D 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