dotnet · dotnet/DivideByZeroException
DivideByZeroException
DivideByZeroException
Thrown when integer division or modulo by zero is attempted. Floating-point division by zero does not throw; it produces Infinity or NaN per IEEE 754. Guard integer divisors before the operation.