How to divide by zero: British!

1. This guy explains how to divide by zero.

2 .Dividing by zero, does not one answer... it has many answers.

3. Therefore proving that 1/0 = ∞.

4. OH-SHI...
NordlichReitersays...

That's why, its an explanation for division by zero. If something has infinite answers.. it cant be answered because nothing can calculate infinity.


It causes computers to break, Ive tried to make a computer get me a bunch of pi digits.... it didn't turn out good. The computer instantly starts running hot, because it instantly reaches infinite recursion.

jmzerosays...

Dividing by zero doesn't cause computers to break or something, though the answer may or may not be useful for you (and bad software might indeed break, especially on unhandled integer errors). IEEE 754 defines the behavior for floats. A positive number/0 = +infinity (yes, the computer has a value for infinity) and a negative number/0 = -infinity.

NordlichReitersays...

Yes, but when trying to calculate infinity, it is impossible.

That is why number / 0 is impossible, the operation never takes place, it identifies the impossible and reports an answer of infinity.

Like a try catch loop

//Button Method
private void Submit_Divide_by_Zero()
{

  private quotient;

try
  {
   int number = 1;
   int zero = 0;
   //This obviously = infinity, which is impossible to calculate.
   quotient = (number / zero)
  }
  catch(dividebyzero exception)
  {
   return (quotient = infinity);
  }
}

Good Software Design.

Dividing by zero is undefined, therefore it has no value and does have a value in computing we just cannot define what that value is. Therefore we do not divide by zero in computing, because it is bad practice.

Send this Article to a Friend



Separate multiple emails with a comma (,); limit 5 recipients






Your email has been sent successfully!

Manage this Video in Your Playlists




notify when someone comments
X

This website uses cookies.

This website uses cookies to improve user experience. By using this website you consent to all cookies in accordance with our Privacy Policy.

I agree
  
Learn More