Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
A DivideByZeroException exception is thrown when there is an attempt to divide an integer or decimal value by zero.
Associated Tips
- Make sure the value of the denominator is not zero before performing a division operation.
Dividing a floating-point value by zero results in either positive infinity, negative infinity, or Not a Number (NaN), according to the rules of IEEE arithmetic. Floating-point operations never throw an exception.
See Also
Tasks
How to: Find Out More About an Exception with the Exception Assistant
Reference
Visual J# Exception Handling for the Debugger
Visual J# Exception Hierarchies
DivideByZeroException