10 14 6 Min

LANSA Technical

10.14.6 Min

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

Input Parameters

Of - Numeric value to compare to

Example

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

#Result := Number1.Min(#Number2)

 

The above example is equivalent to writing

If (#number1 < #number 2)

 

#result := #number1

 

Else

 

#result := #number2

 

Endif

 

Ý 10.14 Fixed Point Intrinsic Functions