function MinOfArray(const A: array of Double): Double; overload; var Idx: Integer; begin Assert(Length(A) > 0); Result := A[Low(A)]; for Idx := Succ(Low(A)) to High(A) do if A[Idx] < Result then Result := A[Idx]; end; //delphi/2285