> For the complete documentation index, see [llms.txt](https://docs.origami.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.origami.tech/function/functions/median.md).

# Median

## <mark style="color:purple;">`median`</mark>(*list*\[*decimal*]) -> *decimal*

Returns decimal

Compute the median of the given list elements

<details>

<summary>Example:</summary>

<mark style="color:red;">`median([2.2, 2.5, 5.5])`</mark>` ``→`` `<mark style="color:red;">`2.5`</mark>

</details>
