Is it possible to use system.currency. It says system.currency is inaccessible due to its protection level. what is the alternative of currency.
You have to use Decimal data type..
The decimal keyword indicates a 128-bit data type. Compared to floating-point types, the decimal type has more precision and a smaller range, which makes it appropriate for financial and monetary calculations.
Use Decimal. All of the functions that Currency provides are static methods on Decimal, FromOACurrency, and ToOACurrency.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With