Currency::nonZeroRoundingPrecision Method
Provides a nonzero rounding precision for the provided currency, or the company currency if the provided currency does not exist.
Syntax
client server private static RoundOff nonZeroRoundingPrecision(CurrencyCode _currencyCode, [RoundOff _roundingPrecision])
Run On
Called
Parameters
- _currencyCode
Type: CurrencyCode Extended Data Type
The currency for which to retrieve the round off amount.
- _roundingPrecision
Type: RoundOff Extended Data Type
The rounding precision of the currency provided. If nothing is provided for this optional parameter, the rounding precision of the provided currency will be retrieved; optional.
Return Value
Type: RoundOff Extended Data Type
The value of the RoundingPrecision field from the Currency table for the provided currency. If the provided currency does not exist, the value of the RoundingPrecision field from the Currency table for the company currency. If the value of the RoundingPrecision field is zero for either case or no currencies exist, 0.01 will be returned.
Remarks
If the value of the round off amount is known, provide it as a parameter to prevent multiple reads of the Currency table.