MIN
Action

Returns the lowest value of an array.

Syntax

var = MIN( ar(1) )

Remarks

Var Numeric variable that will be assigned with the lowest value of the array.
ar() The first array element of the array to return the lowest value of.
At the moment MIN() works only with BYTE arrays.
Support for other data types will be added too.

See also
MAX , AVG

Example


Dim ar(10) As Byte
Dim bP as Byte
For bP = 1 to 10
ar(bP) = bP
Next
bP = Min(ar(1))
Print bP 'should print 1
End