double
Median(
double
[]
values
)
Compute the median of the values.
Example
=
Block
{
ShowMean
([1, 2, 4, 6, 7, 8, 23]);
ShowMean
([2, 5, 5, 6, 12, 18]);
ShowMean
([
-
12,
-
5, 2, 18]);
};
The median of 1, 2, 4, 6, 7, 8 and 23 is 6
The median of 2, 5, 5, 6, 12 and 18 is 5.5
The median of -12, -5, 2 and 18 is -1.5