help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions] Reference for unit 'math' (#rtl)

MinIntValue

Return smallest value in integer array

Declaration

Source position: math.pp line 131

function MinIntValue(

  const Data: array of Integer

):Integer;

Description

MinIntvalue returns the smallest value in the Data array.

This function is provided for Delphi compatibility, use minvalue instead.

Errors

None

See also

minvalue

  

Return smallest value in array

maxIntValue

  

Return largest element in integer array

maxvalue

  

Return largest value in array

Example

Program Example30;

{ Program to demonstrate the MinIntValue 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(MinIntValue(ExArray));
end.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505