Div

From Lazarus wiki
Revision as of 20:03, 16 October 2015 by FTurtle (talk | contribs)
Jump to navigationJump to search

Deutsch (de) English (en) español (es) suomi (fi) français (fr) русский (ru)

Div is division in which the fractional part (remainder) is discarded. It means the integer part of the result of dividing two integers.

Example:

var
i,j:integer;
begin
  i:=16;
  j:=3;
  writeln(inttostr(i div j));
end;

See also