math.median

Math: Median

Gets the median value from an array of numbers. If there is an odd number of numbers the middle value is returned. If there is an even number of numbers an average of the two middle numbers is returned.

Arguments

a

DataType
mixed
Required
false
Description
First number for calculation

fail

DataType
boolean
Required
false
Description
If TRUE, throws an Exception if argument “a” is not specified and no child content or inline argument is found. Usually okay to use a NULL value (as integer zero).