{"name":"BIS_fnc_arithmeticMean","title":"BIS fnc arithmeticMean","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_arithmeticMean","revid":338181,"updated":"2023-02-23T23:53:44Z","groups":["Math"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Returns the [arithmetic mean](https://en.wikipedia.org/wiki/Mean#Arithmetic_mean_(AM)) (\"average value\") of an array of numbers.","syntaxes":[{"syntax":"numbers call BIS_fnc_arithmeticMean","params":[{"name":"numbers","type":"Array of Numbers","description":"must not be empty","type_expr":"Array<Number>"}],"returns":{"type":"Number","type_expr":"Number","description":"arithmetic mean"}}],"examples":[{"code":["[1, 3] call BIS_fnc_arithmeticMean; // returns 2"]},{"code":["[1, 9, 8, 2] call BIS_fnc_arithmeticMean; // returns 5"]}],"see_also":["BIS_fnc_randomInt","BIS_fnc_geometricMean","BIS_fnc_nearestNum","BIS_fnc_sortNum","BIS_fnc_roundNum"]}