math.Round
Returns the nearest integer, rounding half away from zero.
Syntax
math.Round VALUE
Returns
float64
{{ math.Round 1.5 }} → 2
Hugo Documentation
Syntax
Returns
{{ math.Round 1.5 }} → 2