title: Why does division by zero in IEEE754 standard results in Infinite value?
body: <p>I'm just curious, why in <code>IEEE-754</code> any non zero float number divided by zero results in infinite value? It's a nonsense from the mathematical perspective. So I think that correct result for this operation is NaN. </p>
  
  <p>Function f(x) = 1/x is not defined when x=0, if x is a real number. For example, function sqrt is not defined for any negative number and sqrt(-1.0f) if <code>IEEE-754</code> produces a <code>NaN</code> value. But 1.0f/0 is <code>Inf</code>.</p>
  
  <p>But for some reason this is not the case in <code>IEEE-754</code>. There must be a reason for this, maybe some optimization or compatibility reasons.</p>
  
  <p>So what's the point?</p>