![]() |
VOOZH | about |
Decimal.ToOACurrency(Decimal) Method is used to convert the specified Decimal value to the equivalent OLE Automation Currency value, which is contained in a 64-bit signed integer.
Syntax: public static long ToOACurrency (decimal value); Here, it takes the decimal number to convert. Return Value: This method returns a 64-bit signed integer that contains the OLE Automation equivalent of value.
Below programs illustrate the use of Decimal.ToOACurrency() Method Example 1:
Equivalent long value is 400000
Example 2: