on-internet
← Community

How different programming languages handle division by 0?

Stack Overflow ·

Perhaps this is the wrong sort of question to ask here but I am curious. I know that many languages will simply explode and fail when asked to divide by 0, but are there any programming languages that can intelligently handle this impossible sum - and if so, what do they do? Do they keep processing, treating 350/0 as 350, or stop execution, or what?

Comments

Sign in or sign up to comment and upvote.

No comments yet.