Fixed Point Intrinsic Functions - Max Method

Returns the largest number

Member of Fixed Point Intrinsic Functions (PRIM_LIBI.IFixedPointIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)DecimalResulting number
Decimal1*InputDecimalComparison value
Decimal2*Input (Optional)DecimalComparison value
Decimal3*Input (Optional)DecimalComparison value
Decimal4*Input (Optional)DecimalComparison value
Decimal5*Input (Optional)DecimalComparison value
Decimal6*Input (Optional)DecimalComparison value
Decimal7*Input (Optional)DecimalComparison value
Decimal8*Input (Optional)DecimalComparison value
Decimal9*Input (Optional)DecimalComparison value

Details

Max compares two or more values, returning the largest.

Example

In this example, where Value1, Value2 and Value3 contain 156, -987 and 456, the result would be 456.
#Result := #Value1.Max( #Value2 #Value3 )

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2