   Dividing By Zero - NOT MATHS
  Ok so this should be in the maths section i'm sure, however, this is more about the error side than the maths so I put it here.Why does dividing a float by zero cause an error? how do you get round this?   
  Because division by zero is undefined. You get around this by not dividing by zero.   ;  Yeah, that's what I thought ... looks like some logic commands.   ;  Coincidentally, dividing an integer by zero also explodes for this exact same reason, generally by crashing your application.Unless you're referring to floating-point specials, which I believe you may very well be.   ;  Just think about it. Say if you have ten balls, divide that by 2balls you get5 balls left. Divide the ten balls by 1 ball and you get 10 balls remaining,but if you divide that ten balls by 0 balls (does this make sense? 0 BALLS),here we are dividing by a non-existing entity, so we really can't divideby 0 because 0 represents  non-existing item, we can't say divide the tenballs by this non-existing item. Plus its a math law.   ;  You find out in calculus that dividing by zero is defined and they've been lying to you all along in school.x/0 = plus or minus infinity :P   ;Quote:Original post by Atrix256You find out in calculus that dividing by zero is defined and they've been lying to you all along in school.You misunderstood calculus then.;  Dividing by zero? You fool, you'll kill us all ;)   ;Quote:Original post by SiCraneQuote:Original post by Atrix256You find out in calculus that dividing by zero is defined and they've been lying to you all along in school.You misunderstood calculus then.I'd believe that, I took a single semester :PI strike my comment from the records then hehe   ;Quote:Original post by Atrix256You find out in calculus that dividing by zero is defined and they've been lying to you all along in school.x/0 = plus or minus infinity :PYou're thinking of the limit of 1/x as x -> 0. As you might also remember from calculus, the limit of some function f(x) as x -> i is not always the same thing as f(i).Also.. "plus or minus infinity" is not a number.   