---
title: max()
slug: max
docTags: 
createdAt: 2021-09-14T17:47:57.000Z
---

Returns the highest of all `values` passed as parameters.

### Syntax

`max(value, value2, ...,)`

- `value` - the first value.
- `value2` - the second value.

**Return type:&#x20;**[Number](docId\:ucI5tCTfVBhonEJ6ZQijg) , [Percent](docId\:FbN7bFaHlFPV4f1C53DxA) , [Money](docId:_kS5D2xbfoR9d8WfRIVnY).

### Sample usage

`max(-2, 3, 4)` returns `4`.

### Supported data types

| **Input type**                             | **Return type**                          | **Logic**                                                                                             |
| ------------------------------------------ | ---------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| ****[Number](docId\:ucI5tCTfVBhonEJ6ZQijg) | [Number](docId\:ucI5tCTfVBhonEJ6ZQijg)   | If a set of Number values is passed, the highest Number value will be returned as a Number value.     |
| [Percent](docId\:FbN7bFaHlFPV4f1C53DxA)    | [Percent](docId\:FbN7bFaHlFPV4f1C53DxA)  | If a set of Percent values is passed, the highest Percent value will be returned as a Percent value.  |
| [Money](docId:_kS5D2xbfoR9d8WfRIVnY)       | [Money](docId:_kS5D2xbfoR9d8WfRIVnY)     | If a set of Money values is passed, the highest Money value will be returned as a Money value.        |
| *Unsupported data types*                   | **[Null](docId\:N9trVqonnBknqL9DrNBP6)   | Unsupported data types return `Null`.                                                                 |

