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 x between low and high.
  • Min does not look inside an array: Min(scores) gives NaN. Pass the cells, or walk the array with FOR.
  • A FUNCTION named Min in 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)))   ' -1
In the manual : Constants and operators