BIS fnc arithmeticMean: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *arma2 * * *\| *([0-1]\.[0-9]{2}) * (\| *.[^a])" to "|game1= arma2 |version1= $1 |game2= arma2oa |version2= 1.50 |game3= tkoh |version3= 1.00 |game4= arma3 |version4= 0.50 $2")
m (Text replacement - " \[\[Category:\{\{Name|[a-z0-9]+\}\}: Functions\|\{\{uc:[a-zA-Z0-9]+\}\}\]\]" to "")
Line 27: Line 27:
|seealso= [[BIS_fnc_randomInt]] [[BIS_fnc_geometricMean]] [[BIS_fnc_nearestNum]] [[BIS_fnc_sortNum]] [[BIS_fnc_roundNum]]
|seealso= [[BIS_fnc_randomInt]] [[BIS_fnc_geometricMean]] [[BIS_fnc_nearestNum]] [[BIS_fnc_sortNum]] [[BIS_fnc_roundNum]]
}}
}}
 
||||
[[Category:{{Name|arma2}}: Functions|{{uc:arithmeticMean}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:arithmeticMean}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:arithmeticMean}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:arithmeticMean}}]]

Revision as of 00:01, 17 June 2021

Hover & click on the images for description

Description

Description:
Returns the arithmetic mean of an array of numbers.
Execution:
call
Groups:
Math

Syntax

Syntax:
array call BIS_fnc_arithmeticMean
Parameters:
array: Array - Array of numbers.
Return Value:
Number - arithmetic mean

Examples

Example 1:
[1,3] call BIS_fnc_arithmeticMean;//Returns 2

Additional Information

See also:
BIS_fnc_randomInt BIS_fnc_geometricMean BIS_fnc_nearestNum BIS_fnc_sortNum BIS_fnc_roundNum

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

||||