‎2019 Jan 30 7:23 AM
What is the result of the following arithmetic operation?
DATA: int TYPE I.
int=5*(3/10).
The actual answer is 0, can anyone please help me with the Logic behind the equaltion?
‎2019 Jan 30 8:11 AM
Probably because it does the 3/10 first and converts that to type i before doing the multiplication, resulting in 5 * 0.
‎2019 Jan 30 12:41 PM
And why 3/10 is not temporarily stored as a number with decimals... the answer is here: ABAP documentation - calculation type
‎2019 Jan 30 12:39 PM
Title is not searchable.As Arthur Parisius noticed, you could have tested 3/10 which gives 0 too. Then better use title "why does integer division give zero?"