PriceDiscSmartRounding.round Method [AX 2012]

Rounds an amount based on the smart rounding rule set that is associated with a currency.

public Amount round(Amount _amount, Currency _currency)

Run On

Called

Parameters

_amount
Type: Amount Extended Data Type
The amount to round.
_currency
Type: Currency Table
The currency that is used.

Return Value

Type: Amount Extended Data Type
The rounded amount.

ExceptionCondition
Error

The rounding rule is invalid.

Community Additions

ADD
Show: