# Division by zero

In mathematics, division by zero is division where the divisor (denominator) is zero. Such a division can be formally expressed as ${\textstyle {\dfrac {a}{0}}}$ where a is the dividend (numerator). In ordinary arithmetic, the expression has no meaning, as there is no number which, when multiplied by 0, gives a (assuming ${\textstyle a\neq 0}$ ), and so division by zero is undefined. Since any number multiplied by zero is zero, the expression ${\dfrac {0}{0}}$ is also undefined; when it is the form of a limit, it is an indeterminate form. Historically, one of the earliest recorded references to the mathematical impossibility of assigning a value to ${\textstyle {\dfrac {a}{0}}}$ is contained in Anglo-Irish philosopher George Berkeley’s criticism of infinitesimal calculus in 1734 in The Analyst ("ghosts of departed quantities"). The function y = .mw-parser-output .sfrac{white-space:nowrap}.mw-parser-output .sfrac.tion,.mw-parser-output .sfrac .tion{display:inline-block;vertical-align:-0.5em;font-size:85%;text-align:center}.mw-parser-output .sfrac .num,.mw-parser-output .sfrac .den{display:block;line-height:1em;margin:0 0.1em}.mw-parser-output .sfrac .den{border-top:1px solid}.mw-parser-output .sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}1/x. As x approaches 0 from the right, y approaches infinity. As x approaches 0 from the left, y approaches negative infinity.

There are mathematical structures in which ${\textstyle {\dfrac {a}{0}}}$ is defined for some a such as in the Riemann sphere (a model of the extended complex plane) and the Projectively extended real line; however, such structures do not satisfy every ordinary rule of arithmetic (the field axioms).

In computing, a program error may result from an attempt to divide by zero. Depending on the programming environment and the type of number (e.g. floating point, integer) being divided by zero, it may generate positive or negative infinity by the IEEE 754 floating point standard, generate an exception, generate an error message, cause the program to terminate, result in a special not-a-number value, or crash.