# MAX function

## `MAX` function

| Function Name | Description | Usage | Input parameter | Return value |
|---|---|---|---|---|
| `MAX` | Finds the highest value in an array. | `MAX()` | N/A | Highest value in an array. |

## Supported data type


The `MAX` function supports the following data types:

- Double array
- Integer array

## Example 1: Get the highest value in an integer array


**Sample data** : `$var1$ = {5,8,2,1}`


**Usage** : `$var1$.MAX()`
Return the highest value in var1.


**Output** : `8`

## Example 2: Get the highest value in a double array


**Sample data** : `$var1$ = {2.5,6.1,4.9}`


**Usage** : `$var1$.MAX()`
Return the highest value in var1.


**Output** : `6.1`

## Recommendation

- Learn how to add and configure a [Data Mapping task](https://docs-0cloud-0google-0com.linkedin.net.nz/application-integration/docs/configure-data-mapping-task.md.txt)