max(3F) max(3F)
NAME
max, max0, amax0, max1, amax1, dmax1, jmax0, imax0, ajmax0,
aimax0, jmax1, imax1 - Fortran maximum-value functions
SYNOPSIS
integer i, j, k, l
integer*2 i2, j2, k2, l2
real a, b, c, d
double precision dp1, dp2, dp3
l = max(i, j, k)
l = max0(i, j, k)
l = jmax0(i, j, k)
i = max1(a, b)
i = jmax1(a,b)
l2 = max(i2, j2, k2)
l2 = imax0(i2, j2, k2)
l2 = max0(i2, j2, k2)
l2 = imax1(a,b)
c = max(a, b)
d = max(a, b, c)
d = amax1(a, b, c)
a = amax0(i, j, k)
a = ajmax0(i, j, k)
a = amax0(i2, j2, k2)
a = aimax0(i2, j2, k2)
dp3 = dmax1(dp1, dp2)
DESCRIPTION
The maximum-value functions return the largest of their
arguments (of which there may be any number greater than
one). max is the generic form which can be used for all
data types and takes its return type from that of its argu-
ments (which must all be of the same type). max0 returns
the integer form of the maximum value of its integer argu-
ments; amax0 the real form of its integer arguments; max1
the integer form of its real arguments; amax1 the real form
of its real arguments; and dmax1 the double-precision form
of its double-precision arguments.
The functions jmax, jmax1, imax0, imax1, ajmax0 and aimax0
have been included to provide compatibility with other ven-
dors and are not recommended for general use.
SEE ALSO
min(3F).
Page 1 CX/UX Hf77 Fortran Reference Manual