Skip to content
drewmccluskey edited this page Jan 9, 2019 · 3 revisions

mean

Returns the mean (average) of a set of inputs.

Syntax:

mean(item1, item2..)
Argument Description
T item1 First value to compare
T item2 Another value to compare

Returns: T

Description:

This function works by adding up all the input values and then dividing them by the number of inputs.

Example:

var meanNumber = mean(3,8,5); // return 5,333334

This function return the mean (average) of a set of real value arguments (3,8,5).

Back to number_functions

Clone this wiki locally