Delphi returns the maximum value of double precision floating-point array 2

From , 3 Years ago, written in Delphi (Object Pascal), viewed 82 times.
URL https://pastebin.vip/view/602443a3
  1. function MaxOfArray(const A: array of Extended): Extended; overload;
  2. var
  3.   Idx: Integer;
  4. begin
  5.   Assert(Length(A) > 0);
  6.   Result := A[Low(A)];
  7.   for Idx := Succ(Low(A)) to High(A) do
  8.     if A[Idx] > Result then
  9.       Result := A[Idx];
  10. end;
  11. //delphi/2280

Reply to "Delphi returns the maximum value of double precision floating-point array 2"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website