math.Abs
Returns the absolute value of the given number.
Syntax
math.Abs VALUE
Returns
float64
{{ math.Abs -2.1 }} → 2.1
Last updated:
March 5, 2025
:
content: Consolidate configuration documentation (b6cae5cbc)
Improve this pageHugo Documentation
Syntax
Returns
{{ math.Abs -2.1 }} → 2.1