VOOZH about

URL: https://www.geeksforgeeks.org/c-sharp/decimal-tooacurrency-method-in-c-sharp/

⇱ Decimal.ToOACurrency() Method in C# - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Decimal.ToOACurrency() Method in C#

Last Updated : 11 Jul, 2025

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: 

Output:
Equivalent long value is 400000

Example 2: 

Comment
Article Tags:

Explore