Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

MAX

MAX returns the largest value from a set of two or more expressions.

Read syntax diagramSkip visual syntax diagram           .-,-.
           V   |
>>-MAX(-x,---y-+-)---------------------------------------------><
 
x and y
Expressions.

All the arguments must be real. The result is real, with the common base and scale of the arguments.

If the arguments are fixed-point with precisions:

  (p1,q1),(p2,q2),...,(pn,qn)

then the precision of the result is given by:

  (min(N,max(p1-q1,p2-q2,...,pn-qn) + max(q1,q2,...,qn)),max(q1,q2,...,qn))

where N is the maximum number of digits allowed.

If the arguments are floating-point with precisions:

  p1,p2,p3,...pn

then the precision of the result is given by:

  max(p1,p2,p3,...pn)

The maximum number of arguments allowed is 64.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)