NET/MASTER Network Control Language (NCL) Reference Manual

MIN
Built-in Functions
4–56 106126 Tandem Computers Incorporated
MIN The MIN built-in function returns the lowest number in a set of numbers. Nesting of
the MIN built-in function is permitted. See the second example following.
MIN(
number
[,
number
… ] )
number
specifies the set of numbers to be evaluated. Each number can be an expression.
The number of arguments cannot exceed the NCL limit of 32,000.
Consideration
See also MAX, which returns the highest number in a set of numbers.
Examples
In the following example, the lowest number in the set is 12. This is the value that is
returned:
SAY MIN(12,62,35,23)
The following example shows how the MIN built-in function can be nested. The value
-1000 is assigned to the variable &1, the lowest number of the set, and the value that is
returned is -1000. The inner (nested) function results in the lowest value of 2 and 809,
which is 2. This number then enters the list of numbers to be evaluated by the
outermost MIN built-in function:
&1 = -1000
&A = MIN(-31,2,45)
&RESULT = MIN(78,&1,&A,MIN(2,809))
In the following example, the lowest number in the set is .00005. This is the value that
is returned:
SAY MIN(.0003,.021,.098,.00005)