Skip to content

LongDiv

Overflow safe divide

Declaration

Source position: objects.pp line 720

  function LongDiv(X: LongInt; Y: Integer) : Integer;

Description

LongDiv divides X by Y. The result is of type Integer instead of type Longint, as you would get normally.

Errors

If Y is zero, a run-time error will be generated.

See also

Name Description
LongMul Overflow safe multiply.