wrong result in simple computation
Hi Gurus
need help, i have a requirement for computing in vat ,in calculator it seems correct but in abap the result is different. this weird scenario i encountered.
all variables are in type p decimals 2.
netwr = 249.38
kbetr = 50.00
i try 2 approach.
vat = (netwr * ( kbetr / 1000))
and
tmp_var = kbetr / 1000.
vat = netwr * tmp_var
the result is vat = 1246.90
but in calculator or in excel is 12.469
any idea? thanks
Tags:
NagaSwapna Thota replied
Hi,
Check whether the fixed point arithmetic is checked or not. This makes lot of difference. To check this Goto Attributes of your report, a pop up window appears. Here you have that checkbox Fixed Point Arithmetic. Check it, Save and Close.
Regards,
Swapna.