wrong result in simple computation
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))
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
NagaSwapna Thota replied
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.