Difference between revisions of "TIAMin"

From SCAR Divi Manual
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
==Availability==
 
==Availability==
 
SCAR Divi 3.34 > Current
 
SCAR Divi 3.34 > Current
 +
 +
===Aliases===
 +
*AMin (SCAR Divi 3.00 > 3.37)
  
 
==Description==
 
==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]].
+
Returns the smallest number in a given '''TIA'''. The function throws an exception if the size of the given TIA is 0. An extended function with additional functionality is available as [[TIAMinEx]].
  
 
==Example==
 
==Example==
Line 15: Line 18:
 
   WriteLn(TIAMin([2, 4, 3, 6, 8, 5, 1, 2]));
 
   WriteLn(TIAMin([2, 4, 3, 6, 8, 5, 1, 2]));
 
end.
 
end.
 
 
</source>
 
</source>
  
Line 24: Line 26:
 
*[[TIAMinEx]]
 
*[[TIAMinEx]]
 
*[[TIAMax]]
 
*[[TIAMax]]
 +
*[[TIARange]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:TIA Functions]]
 
[[Category:TIA Functions]]
 
[[Category:Array Functions]]
 
[[Category:Array Functions]]
 +
[[Category:Math Functions]]

Latest revision as of 16:54, 12 December 2012

Definition

function TIAMin(const TIA: TIntArray): Integer;

Availability

SCAR Divi 3.34 > Current

Aliases

  • AMin (SCAR Divi 3.00 > 3.37)

Description

Returns the smallest number in a given TIA. The function throws an exception 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