[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Objects' (#rtl)

LongMul

Overflow safe multiply.

Declaration

Source position: objects.pp line 669

function LongMul(

  X: Integer;

  Y: Integer

):LongInt;

Description

LongMulmultiplies Xwith Y. The result is of type Longint. This avoids possible overflow errors you would normally get when multiplying Xand Ythat are too big.

Errors

None.

See also

LongDiv

  

Overflow safe divide