---
name: "BIS_fnc_arithmeticMean"
type: function
status: ok
groups: ["Math"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_arithmeticMean
revid: 338181
updated: 2023-02-23T23:53:44Z
---

# BIS_fnc_arithmeticMean

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

## Description

Returns the [arithmetic mean](https://en.wikipedia.org/wiki/Mean#Arithmetic_mean_(AM)) ("average value") of an array of numbers.

## Syntax

```sqf
numbers call BIS_fnc_arithmeticMean
```

**Parameters:**

- `numbers`: [Array](../topics/Array.md) of [Number](../topics/Number.md)s - must not be empty

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

## Examples

### Example 1

```sqf
[1, 3] call BIS_fnc_arithmeticMean; // returns 2
```

### Example 2

```sqf
[1, 9, 8, 2] call BIS_fnc_arithmeticMean; // returns 5
```

## See also

[BIS_fnc_randomInt](../functions/BIS_fnc_randomInt.md) · [BIS_fnc_geometricMean](../functions/BIS_fnc_geometricMean.md) · [BIS_fnc_nearestNum](../functions/BIS_fnc_nearestNum.md) · [BIS_fnc_sortNum](../functions/BIS_fnc_sortNum.md) · [BIS_fnc_roundNum](../functions/BIS_fnc_roundNum.md)

<sub>Source: [BI Community Wiki — BIS fnc arithmeticMean](https://community.bistudio.com/wiki/BIS_fnc_arithmeticMean) (revision 338181).</sub>
