HELPLIB.HLB  —  FORTRAN  Intrinsic Procedures, MAX
  MAX (number, number [, ...])

  Class:  Elemental function - Generic

  Returns the greatest of the values specified in the argument list.
  +------+---------+----------+------------+-------------+
  | Args | Generic | Specific |  Argument  | Result Type |
  +------+---------+----------+------------+-------------+
  |  n   |  MAX    |   --     | INTEGER*1  | INTEGER*1   |
  |      |         |   --     | INTEGER*1  | REAL*4      |
  |      |         | IMAX0    | INTEGER*2  | INTEGER*2   |
  |      |         | AIMAX0   | INTEGER*2  | REAL*4      |
  |      |see note1| MAX0     | INTEGER*4  | INTEGER*4   |
  |      |see note2| AMAX0    | INTEGER*4  | REAL*4      |
  |      |         | KMAX0    | INTEGER*8  | INTEGER*8   |
  |      |         | AKMAX0   | INTEGER*8  | REAL*4      |
  |      |         | IMAX1    | REAL*4     | INTEGER*2   |
  |      |see note3| MAX1     | REAL*4     | INTEGER*4   |
  |      |         | KMAX1    | REAL*4     | INTEGER*8   |
  |      |         | AMAX1    | REAL*4     | REAL*4      |
  |      |         | DMAX1    | REAL*8     | REAL*8      |
  |      |         | QMAX1    | REAL*16    | REAL*16     |
  +------+---------+----------+------------+-------------+

  Note1: Or JMAX0.
  Note2: Or AJMAX0.  AMAX0 is the same as REAL(MAX). For
         compatibility with older versions of Fortran, AMAX0
         can also be specified as a generic function.
  Note3: Or JMAX1.  MAX1 is the same as INT(MAX). For
         compatibility with older versions of Fortran, MAX1
         can also be specified as a generic function.

  These functions cannot be passed as actual arguments.

  The setting of compiler options specifying integer size can affect
  MAX1.

  The setting of compiler options specifying real size can affect
  AMAX1.
Close Help