Skip to main content

median

The middle value; the average of the middle two when the count is even

median(arr: array) -> float64

Arguments

NameType
arrarray

Example

{{ median([10, 20, 30, 100]) }}

Returns 25.