Syntax
Gives the smallest of the values it receives, however many there are.
Min(<value>, <value> [, <value>…])Parts
| <value> | A number. Text that holds a number, such as "12", is read as that number. |
|---|
Returns
The smallest value, as a number. NaN when one value is not a number. With no value at all, Infinity.
Good to know
- Min(Max(x, low), high) keeps
xbetweenlowandhigh. Mindoes not look inside an array: Min(scores) givesNaN. Pass the cells, or walk the array withFOR.- A FUNCTION named
Minin your program replaces this one.
Example
DIM scores(2) = [40, 15, 70]Console(Str(Min(scores(0), scores(1), scores(2)))) ' 15Console(Str(Min(4, -1, 2))) ' -1In the manual : Constants and operators