> 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/reference/grid-language/functions/abs.md).

# abs()

abs() returns the absolute value of a number, for example abs(-0.1) returns 0.1.

The Abs function in Origami Tech returns the absolute value of a number, useful for managing signals, risk, and calculations in trading logic.

## `abs`(*decimal*) -> *decimal*

Returns the absolute value of the given number

<details>

<summary>Example:</summary>

`abs(-0.1)` → `0.1`

`abs(0.1)` → `0.1`

</details>
