Division by zero
If a computer program tries to divide an integer by zero, the operating system will usually detect this and stop the program. Usually it will print an error message, or NaN. Division by zero is a common bug in computer programming. Dividing floating point numbers (decimals) by zero will usually result in either infinity or a special NaN (not a number) value, depending on what is being divided by zero.