-
-
Notifications
You must be signed in to change notification settings - Fork 19
median
drewmccluskey edited this page Jan 9, 2019
·
5 revisions
Returns the closest middle number from input values
median(item1, item2, item3..);| Argument | Description |
|---|---|
| item1 | First value to compare |
| item2 | Second value to compare |
| item3 | Another value to compare |
Returns: T
This function will return the closest middle value from an unlimited list of inputs.
var medianValue = median(15, 22, 66); //return 22This 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