© Copyright 2023, Astera Software
Name | Max (Decimal) |
Syntax | Max (Decimal first, Decimal second) |
Purpose | To return the greater of two decimal values. |
Description | Returns the maximum of two decimal values. |
Return Type | Decimal |
Parameters | first [System.Decimal] – First value second [System.Decimal] – Second value |
Example
In this example, we are passing decimal values to the function transformation object using a Variables object.
Note: This function also takes into account negative values.
Where,
first = 1.23
second = 3.21
In the output window, you can see that the greater decimal value has been returned.