‎2014 Feb 19 6:04 PM
Hiya,
I have some code that is doing a basic division calculation but it is always returning a value of zero:
I can't seem to understand why this should be the case?
It should be a simple case of just 20,000 / 10,000 = 2
Not 20,000 / 10,000 = 0?
Can anyone smarter than me figure out what is happening?
Many thanks!
‎2014 Feb 19 6:24 PM
i think it is happening because of the decimal places.
For lv_total you have two decimal places and menge you have 3 decimal places. i am not sure about the reason but can you try putting one of them in proper format(i think putting lv_total into 3 decimal variable would be better)
‎2014 Feb 19 6:30 PM
‎2014 Feb 19 6:37 PM
Thanks for your help guys but I think it's a setting in the class that is causing the problem:
Changing it means it is now working.
Has anyone else encountered this?
Why do SAP not set this be default?!
Very frustrating!
‎2014 Feb 19 6:43 PM