math.Abs
Returns the absolute value of the given number.
- Syntax
- math.Abs VALUE
- Returns
- float64
Usage
The math.Abs function returns the absolute value of the given number.
Examples
{{ math.Abs -2.1 }} → 2.1
{{ math.Abs 2.1 }} → 2.1Last updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page