Skip to Content
0
Former Member
Mar 21, 2008 at 09:17 AM

Round up error.

62 Views

Dear All,

I have a issue in which i am calculating VAT by a particular logic now when i am dividing the values for VAT calculation

for larger values the number of digits after decimal point is proving critical resulting into answer which is different than the actual one by some value.

The simple way by which i can explain is for value say,

35756.25 / 5000.000 the actual value is 7.15125

but since i have declared that variable of type

ZSDSTR003-KBETR it is truncating digits from 3 onwards after decimal point and

value is maintained as 7.15 and not 7.15125 which is causing my final answer to vary by a small amount.

Thanks 2 all

Ronak.