HUGO
News Docs Themes Community GitHub

math.Round

Returns the nearest integer, rounding half away from zero.

Syntax

math.Round VALUE

Returns

float64
{{ math.Round 1.5 }} → 2

Last updated: January 1, 0001
Improve this page