Export (0) Print
Expand All
Expand Minimize
2 out of 7 rated this helpful - Rate this topic

Troubleshooting Exceptions: System.DivideByZeroException

A DivideByZeroException exception is thrown when there is an attempt to divide an integer or decimal value by zero.

Make sure the value of the denominator is not zero before you perform 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.