MAX(3f)

DESCRIPTION
Returns the argument with the largest (most positive) value.

STANDARD
Fortran 77 and later

CLASS
Elemental function

SYNTAX
RESULT = MAX(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 MAX0(A1) INTEGER(4) A1 INTEGER(4) Fortran 77 and later AMAX0(A1) INTEGER(4) A1 REAL(MAX(X)) Fortran 77 and later MAX1(A1) REAL A1 INT(MAX(X)) Fortran 77 and later AMAX1(A1) REAL(4) A1 REAL(4) Fortran 77 and later DMAX1(A1) REAL(8) A1 REAL(8) Fortran 77 and later

SEE ALSO
MAXLOC MAXVAL, MIN

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).