Roundoff issue Ax4.0 - 0.01 values

We are doing some calculation with 7 or 8 fields and then summing it up, while doing it, we are getting difference of 0.01 or 0.02 in the system and manual calculation.

How can we get the same value?

We tried with roundoff and without roundoff and also possible combination?

Could somebody help us to resolve the rounding off issue?

Hai you can use of round method

AOT-System Documentation-Functions-Round

Also check out in Classes-Global classes- You will find lot of rounding off methods which u can make use accordingly.

Regards

Shon

roundOffTaxAmount

Check this method in taxtable u might get an idea of rounding off :slight_smile:

Hi,

Can you explain me somewhat clear.In which class i want to see the method taxable

In

Aot-Tables-Taxtable-roundofftax() is what poster suggests

Regards

Shon

Hi Ramya,

TaxTable is the table in Ax. Check that table methods for the further clarity…

Hi Yeswanth,

Thanks for your reply.Tomorrow will see and tell you.

Hi,

I saw the method roundedOffTax() in taxtable,in that they used a enum with the three elements.

RoundOffType:-

Ordinary

RoundDown

RoundUp

which method is used to avoid rounding.Can you tell this.