Next: , Previous: MERGE, Up: Intrinsic Procedures


6.150 MIN — Minimum value of an argument list

Description:
Returns the argument with the smallest (most negative) value.
Standard:
F77 and later
Class:
Elemental function
Syntax:
RESULT = MIN(A1, A2 [, A3, ...])
Arguments:

A1 The type shall be INTEGER(*) or REAL(*).
A2, A3, ... An expression of the same type and kind as A1. (As a GNU extension, arguments of different kinds are permitted.)

Return value:
The return value corresponds to the maximum value among the arguments, and has the same type and kind as the first argument.
Specific names:

Name Argument Return type Standard
MIN0(I) INTEGER(4) I INTEGER(4) F77 and later
AMIN0(I) INTEGER(4) I REAL(MIN(X)) F77 and later
MIN1(X) REAL(*) X INT(MIN(X)) F77 and later
AMIN1(X) REAL(4) X REAL(4) F77 and later
DMIN1(X) REAL(8) X REAL(8) F77 and later

See also:
MAX, MINLOC, MINVAL