System Functions
MIN( ) Return Minimum Value
   
Format MIN(compare_1,compare_2, ... [,ERR=stmtref])
 
Where:
compare1, compare2, ... Comma-separated list of values and/or expressions to be compared in order to determine the lowest value.
stmtref Program line number or statement label to which to transfer control.
   
Returns The smallest numeric or string value from the list of supplied values.
   
Description The MIN( ) function returns the minimum (smallest) value of the values or expressions specified. There is no limit to the number of values or expressions that can be passed to the MIN( ) function.

All compare values must be the same type -- numeric or string.

Using the MIN function on string values is +PxPlus Exclusive (build 9181)

   
See Also MAX( ) Return Maximum Value
   
Example In this example, the MIN( ) function evaluates an expression (13/2.96=4.39), a literal (4.5) and a variable (evaluated, A=5.69):
 
0010 A=12.345/2.71
0020 B=MIN(13/2.96,4.5,A); PRINT B
-:run
4.39