Fixed Point Intrinsic Functions - Min Method
Returns the smallest number
Member of Fixed Point Intrinsic Functions (PRIM_LIBI.IFixedPointIntrinsics)
| Name | Type | Data Type | Description |
|---|---|---|---|
| Result | *Result (Optional) | Decimal | Resulting number |
| Decimal1 | *Input | Decimal | Comparison value |
| Decimal2 | *Input (Optional) | Decimal | Comparison value |
| Decimal3 | *Input (Optional) | Decimal | Comparison value |
| Decimal4 | *Input (Optional) | Decimal | Comparison value |
| Decimal5 | *Input (Optional) | Decimal | Comparison value |
| Decimal6 | *Input (Optional) | Decimal | Comparison value |
| Decimal7 | *Input (Optional) | Decimal | Comparison value |
| Decimal8 | *Input (Optional) | Decimal | Comparison value |
| Decimal9 | *Input (Optional) | Decimal | Comparison value |
Min compares two or more values, returning the smallest.
In this example, where Value1, Value2 and Value3 contain 156, -987 and 456, the result would be -987.
#Result := #Value1.Min( #Value2 #Value3 )
LANSA Version 15, April 2020