06-17-2015 7:58 PM
Hi All ,
Why 0 / 0 is not undefined in ABAP and no exception is raised whereas in other languages "division by 0 " exception is raised.
In ABAP :
0 / 0 -> No exception raised.
5/ 0 - > BCD_ZERODIVIDE Exception is raised.
Regards,
Tanmay
06-18-2015 4:55 AM
SAP documentation says to avoid conditions (by placing the check) where a divident is also zero while devider is zero. But it doesn't give an explanation as to why there is no exception raised for this special case..
Regards,
~Athreya