Round Function

Hello,

I’m a lil bit confuse with the rounding function in nav. In my report (APV), it gives an additional 0.01 in the number in the line. Could you help me out on how to control the amount decimal places rounding off?

For Example:(credit side)

32,592.38 ← it gives an additional .01 in my report (this is the wrong one) (A)

  • 293.63 (B)

32,886.00 ← (amount appearing ing the total) (C)

Though I already tried to use the Rounding Function, it has no effect. Below is the code I used in (A)

RoundedResult := ROUND(-decGLEntryDebitCreditAmount[Number], 0.01,’<’);

And I was thinking to deduct a -0.01, but it will affect the other document numbers…

I hope that you can help me out with this [;)]

Check the G/L Setup First before making the changes in Program

Look at these fields

Inv.Rounding Precision

Amount Decimal Places

Unit Amount Decimal Places

Amount Rounding Precision

Unit Amount Rounding Precision

As well as Check in Currency Table what are precision set.

attached file is the screen shot in my gen. ledger set up…

One thing… whenever I put WHT it deducts 0.01 in the Trade Creditors line… If none, the report is fine…
genledgersetup.JPG