Originally posted by Ron Newman:
Why do you think it should return a NaN rather than an Infinity?
Because for some reason I have it stuck in my head that division by zero is not a number. However double checking my books I see that division by zero is infinity when dealing with floating point numbers, the sign determined by the original sign of the dividend (numerator if a fraction).
I honestly can't think of where I learned division by zero is not a number to keep me making that mistake.