Skip to Content
0
Former Member
Sep 23, 2008 at 08:44 AM

wrong result in simple computation

128 Views

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