math.Abs
Returns the absolute value of the given number.
Syntax
math.Abs VALUE
Returns
float64
{{ math.Abs -2.1 }} → 2.1
Hugo Documentation
Syntax
Returns
{{ math.Abs -2.1 }} → 2.1