Skip to content

Commit 6316ca2

Browse files
committed
reference/templates: document abs function
Signed-off-by: Luca Zeuch <[email protected]>
1 parent 8303c17 commit 6316ca2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

content/docs/reference/templates/functions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,14 @@ object](/docs/reference/templates/syntax-and-data#message). Is also valid for ep
781781

782782
## Math
783783

784+
#### abs
785+
786+
```yag
787+
{{ $result := abs x }}
788+
```
789+
790+
Returns the absolute value of the provided number.
791+
784792
#### add
785793

786794
```yag

0 commit comments

Comments
 (0)