[Overview][Constants][Types][Classes][Procedures and functions] | Reference for unit 'math' (#rtl) |
Return largest element in integer array
Source position: math.pp line 132
function MaxIntValue( |
const Data: array of Integer |
):Integer; |
MaxIntValue returns the largest integer out of the Data array.
This function is provided for Delphi compatibility, use the maxvalue function instead.
None.
|
Return largest value in array |
|
|
Return smallest value in array |
|
|
Return smallest value in integer array |
Program Example25; { Program to demonstrate the MaxIntValue function. } { Make sore integer is 32 bit} {$mode objfpc} Uses math; Type TExArray = Array[1..100] of Integer; Var I : Integer; ExArray : TExArray; begin Randomize; for I:=low(exarray) to high(exarray) do ExArray[i]:=Random(I)-Random(100); Writeln(MaxIntValue(ExArray)); end.
No notes exist for this page yet.