Purpose |
Return the argument with the smallest (minimum) value. |
Syntax |
y = MIN(arg, arg [, arg] ...) y& = MIN&(arg&, arg& [, arg&] ...) y$ = MIN$(arg$, arg$ [, arg$] ...) |
Remarks |
These functions take any number of arguments
and return the argument with the smallest (minimum) value. MIN handles arguments of any
MIN& handles arguments that evaluate to Integers and Long-integers (MIN& is more efficient than MIN). MIN$ handles
If any arguments of MIN& are outside of the
range of Long-integers, the result is undefined. Any
MIN% is recognized as a valid synonym for MIN&. |
See also |
CHOOSE, CHOOSE&, CHOOSE$, IIF, IIF&, IIF$, MAX, MAX&, MAX$, SWITCH, SWITCH&, SWITCH$ |
Example |
x& = MIN&(A, B, C, D) x$ = MIN$("abacadabra","cad", A$, B$(4), C$ + D$ + LEFT$(E$,5)) x## = MIN(1.1@@, A%/B!, C#(x)^D, E##, SIN(F&)) |