Sign in Join
FPDoc Onlineexperiment

LongMul function

In unit Objects

Overflow safe multiply.

Declaration

pascal
function LongMul(X: Integer; Y: Integer): LongInt

Description

LongMul multiplies X with Y. The result is of type Longint. This avoids possible overflow errors you would normally get when multiplying X and Y that are too big.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.