Div

From Free Pascal wiki
Jump to: navigation, search

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

Personal tools