Skip to main content

math.Round

Round to nearest integer

math.Round(x: float64) -> float64

Arguments

NameType
xfloat64

Example

{{ math.Round(3.7) }}

Returns 4.