Share via


CurrencyExchangeHelper::roundWithRuleType Method [AX 2012]

Rounds the specified amount based on the rounding rule type of the currency.

Syntax

client server public static Amount roundWithRuleType(
    Amount _amount, 
    CurrencyCode _currency, 
    CurrencyRoundingRuleType _currencyRoundingRuleType)

Run On

Called

Parameters

Return Value

Type: Amount Extended Data Type
The rounded amount, based on the rounding rule type of the currency.

Remarks

This method should be used only if the Currency table buffer cannot be provided.

If the Currency table buffer can be provided, consider using the CurrencyExchangeHelper::roundWithRuleTypeCurrencyTable method.

See Also

Reference

CurrencyExchangeHelper Class