> 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/abs.md).

# Abs

## <mark style="color:purple;">`abs`</mark>(*decimal*) -> *decimal*

Returns the absolute value of the given number

<details>

<summary>Example:</summary>

<mark style="color:red;">`abs(-0.1)`</mark>` ``→`` `<mark style="color:red;">`0.1`</mark>

<mark style="color:red;">`abs(0.1)`</mark>` ``→`` `<mark style="color:red;">`0.1`</mark>

</details>
