maximum()

The system function MathLib.maximum returns the greater of two numbers.

 MathLib.maximum(
    numericField1 mathLibNumber in,
    numericField2 mathLibNumber in)
  returns (result mathLibTypeDependentResult)
result
Any numeric or HEX item, as described in Mathematical (system words). The greater of two numbers is converted to the format of result and returned in result.
numericField1
Any numeric or HEX item, as described in Mathematical (system words).
numericField2
Any numeric or HEX item, as described in Mathematical (system words).

Example

  result = MathLib.maximum(myItem01,myItem02);

Related reference
EGL library MathLib

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.