Difference between revisions of "TIAMin"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function TIAMin(const TIA: TIntArray): Integer; </source> ==Availability== SCAR Divi 3.34 > Current ==Description== Returns th...")
 
Line 8: Line 8:
  
 
==Description==
 
==Description==
Returns the smallest number in a given '''TIA'''. An extended function with additional functionality is available as [[TIAMinEx]].
+
Returns the smallest number in a given '''TIA'''. The function throws an error if the size of the given TIA is 0. An extended function with additional functionality is available as [[TIAMinEx]].
  
 
==Example==
 
==Example==

Revision as of 12:41, 23 April 2012

Definition

function TIAMin(const TIA: TIntArray): Integer;

Availability

SCAR Divi 3.34 > Current

Description

Returns the smallest number in a given TIA. The function throws an error if the size of the given TIA is 0. An extended function with additional functionality is available as TIAMinEx.

Example

begin
  WriteLn(TIAMin([2, 4, 3, 6, 8, 5, 1, 2]));
end.

Output:

1

See Also