Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Why 0 / 0 is not undefined in ABAP ?

TanmayVerma
Active Participant
0 Kudos

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

1 REPLY 1

former_member185613
Contributor
0 Kudos

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