Min function
Return smallest of two values.
Declaration
function Min(a: Integer; b: Integer): Integer; overloadDescription
Min returns the smallest of the two values in the
a
and
b arguments. The overloaded variants use the same type for
both of the compared arguments. The type for the first argument determines
the overloaded function used for the comparison.
Errors
None.
See also
Example: ex29
Program Example29;
{ Program to demonstrate the min function. }
Uses math;
Var
A,B : Cardinal;
begin
A:=1;b:=2;
writeln(min(a,b));
end.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
