Why division by zero is not infinity in the computer system

--

The computer only operates addition and subtraction, does not know division or multiplication. if the computer requires to do divide values, then it does the subtraction until the given value comes to zero.

how the computer does the division

how computer divides 20 / 5

let's see the next division to understand why divided by zero is not infinity.

As you know dividing a number by smaller and smaller numbers produces larger and larger numbers and vice versa. it is trending to infinity. Let’s have look at the below image. The below image illustrates it.

y = 1/x image from Wikipedia

In mathematics, we can say that divide by zero is infinity but not in computers and logically. Therefore, any number divided by zero is undefinable.

Reference :

https://www.youtube.com/watch?v=sCW5dbk4C_

--

--

No responses yet