---
name: "BIS_fnc_greatestNum"
type: function
status: ok
groups: ["Arrays", "Math"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_greatestNum
revid: 326905
updated: 2022-07-12T21:44:38Z
---

# BIS_fnc_greatestNum

*Function · Arrays, Math · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Returns the greatest number out of the passed set.

## Syntax

```sqf
numbers call BIS_fnc_greatestNum
```

**Parameters:**

- `numbers`: [Array](../topics/Array.md) - a set of numbers

**Returns:** [Number](../topics/Number.md) - greatest number in the set

## Examples

### Example 1

```sqf
private _result = [7,2,1,5,10] call BIS_fnc_greatestNum; //_result = 10
```

## See also

[BIS_fnc_lowestNum](../functions/BIS_fnc_lowestNum.md) · [BIS_fnc_findExtreme](../functions/BIS_fnc_findExtreme.md) · [selectMin](../commands/selectMin.md) · [selectMax](../commands/selectMax.md)

<sub>Source: [BI Community Wiki — BIS fnc greatestNum](https://community.bistudio.com/wiki/BIS_fnc_greatestNum) (revision 326905).</sub>
