Apply boundary values to the variable
Member of Fixed Point Intrinsic Functions (PRIM_LIBI.IFixedPointIntrinsics)
|Result||*Result (Optional)||Decimal||Resulting number|
Bound returns a value limuted by the two value supplied. 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.
In this example, 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.
#Result := #Number.Bound(1 100)
LANSA Version 15, April 2020