10 14 3 Bound

LANSA Technical

10.14.3 Bound

Bound returns a number within the bounds in the supplied Input Parameters. If the variable is greater than the bounds, the upper bound is returned. If lower, the lower bound is returned. If the variable is within the bounds, the variable is returned unmodified

Input Parameters

Numberone - Upper or lower bound limit

Numbertwo - Upper or lower bound limit

Example

#Result := #Number.Bound(1 100)

 

Using the example above, if number contained 150, result would be set to 100. If number contained 0, result would be set to 1. If number contained 42, result would be set to 42.

Ý 10.14 Fixed Point Intrinsic Functions