Returns the argument with the largest (most positive) value.
FORTRAN 77 and later
result = max(a1, a2 [, a3 [, ...]])
a1
- The type shall be integer
or real
.a2
, a3
, … - An expression of the same type and kind as a1
.The return value corresponds to the maximum value among the arguments, and has the same type and kind as the first argument.