MIN

Previous  Next

 

min = MIN( value_1 AS REAL|INTEGER|STRING,

           value_2 AS REAL|INTEGER|STRING ) AS INTEGER

 

min = MIN( INTEGER|REAL ) AS INTEGER|REAL

 


 

Returns the smaller of two values.  The argments can be of either REAL, INTEGER or STRING.  When using strings, both arguments must be of type STRING.  The second syntax will return the minimum real or integer value that MyBASIC2 can handle.

 

Example:

 

PRINT "["; MIN( 1, 2 );",";MAX( 1, 2 );"]"

[1,2]