Zero divided by 0.001, well that's also going to be to zero. 0 divided by 0.000001 is also going to be equal to zero." And it didn't matter whether we were dividing by a positive or negative number. Make all of these negatives, you still get the same answer. read more
IEE standard 754 floating point[1] defines signed infinity values, so in theory that should be the result of divide by zero. The hardware simply sets a flag if the demoninator is zero on a division operation. read more