Delphi / Object Pascal · Exception
What does Runtime Error 200: EDivByZero mean in Delphi / Object Pascal?
The program divided an integer value by zero.
The program divided an integer value by zero.
Add an explicit check for a zero divisor before the division, or catch EDivByZero in a try-except block if the operation is expected to fail occasionally on untrusted input.