---
name: "max"
type: command
status: ok
groups: ["Math"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/max
revid: 321188
updated: 2022-05-13T15:20:51Z
---

# max

*Command · Math · Arma 3 v0.50 · introduced in Armed Assault v1.00*

## Description

The greater value of a and b.

## Syntax

```sqf
a max b
```

**Parameters:**

- `a`: [Number](../topics/Number.md)
- `b`: [Number](../topics/Number.md)

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
3 max 2; // Result is 3
```

### Example 2

```sqf
-3 max -2; // Result is -2
```

## See also

[min](../commands/min.md) · [selectMin](../commands/selectMin.md) · [selectMax](../commands/selectMax.md) · [ceil](../commands/ceil.md) · [floor](../commands/floor.md) · [linearConversion](../commands/linearConversion.md) · Math Commands

<sub>Source: [BI Community Wiki — max](https://community.bistudio.com/wiki/max) (revision 321188).</sub>
