# Max (Integer)

| **Name**    | ***Max (Integer)***                                                                    |
| ----------- | -------------------------------------------------------------------------------------- |
| Syntax      | Max (Integer first, Integer second)                                                    |
| Purpose     | To return the greater of two integer values.                                           |
| Description | Returns the maximum of two integer values.                                             |
| Return Type | Int64                                                                                  |
| Parameters  | <p>first \[System.Int64] – First value</p><p>second \[System.Int64] – Second value</p> |

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(177\).png)

**Example**

In this example, we are passing integer values to the function transformation object using a *Variables* object.

**Note:** This function also takes into account negative values.

Where,

*first* = 1234

*second* = 4321

<figure><img src="https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20(177).png" alt=""><figcaption></figcaption></figure>

In the output window, you can see that the greater integer value has been returned.

<figure><img src="https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20(178).png" alt=""><figcaption></figcaption></figure>
