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

median

Returns the closest middle number from input values

Syntax:

median(item1, item2, item3..);
Argument Description
item1 First value to compare
item2 Second value to compare
item3 Another value to compare

Returns: T

Description:

This function will return the closest middle value from an unlimited list of inputs.

Example:

var medianValue = median(15, 22, 66); //return 22

This function will find the closest middle value of 15, 22, and 66, and will set var medianValue to 22 because this value is the closest middle of all 3 values.

Back to number_functions

Clone this wiki locally