Does division by zero cause an exception?
Does division by zero cause an exception? Remarks. Trying to divide an integer or Decimal number by zero throws a DivideByZeroException exception. Dividing a floating-point value by zero doesn’t throw an exception; it results in positive infinity, negative infinity, or not a number (NaN), according to the rules of IEEE 754 arithmetic. How do you […]