10 14 5 Max

LANSA Technical

10.14.5 Max

Max compares a numeric value to the value supplied in the Of parameter, and returns the larger of the two.

Input Parameters

Of - Numeric value to compare to

Example

#Result := #Number1.Max(#Number2)

 

In this example, if number1 has a value of 19, and number2 has a value of 20, result will be set to 20

This is equivalent to writing:

If (#number1 > #number 2)

 

#result := #number1

 

Else

 

#result := #number2

 

Endif

 

Ý 10.14 Fixed Point Intrinsic Functions