简单类型 / 数字 / 数学运算

uses System.Math;

var
  MinValue, MaxValue, MaxOfList: Integer;
begin
  MinValue := Min(Min(21), 3);
  //MinValue is 1

  MaxValue := Max(Max(21), 3);
  //MaxValue is 3

  //for a list of values
  MaxOfList := MaxIntValue([213]);
  //MaxOfList is 3

  WriteLn('minValue is ', MinValue);
  WriteLn('maxValue is ', MaxValue);
  WriteLn('maxOfList is ', MaxOfList);
end.