Not yet a member? No problem!
Sign-up just takes a second.
Forgot your password?
Recover it now.
Already signed up?
Log in now.
Forgot your password?
Recover it now.
Not yet a member? No problem!
Sign-up just takes a second.
Remember your password?
Log in now.
8 Comments
NordlichReiterno music.
9671What? I could not follow this guy what so ever. I think a remake is in order with some pointing and other explanation.
NordlichReiterThat'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.
pierrekrahn5. ???
6. Profit.
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.
NordlichReiterYes, 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.
NordlichReiterhttp://en.wikipedia.org/wiki/Divide_by_zero
thinker2471/0 = infinity
So, an undefined equals an undefined. I don't see where the miracle is here.
Discuss...
Enable JavaScript to submit a comment.