math.Ceil
Returns the least integer value greater than or equal to the given number.
- Syntax
- math.Ceil VALUE
- Returns
- float64
Usage
The math.Ceil function returns the least integer value greater than or equal to the given number.
Examples
{{ math.Ceil 2.1 }} → 3With a negative number:
{{ math.Ceil -2.1 }} → -2Last updated:
October 21, 2026
:
content: Apply style guide to math functions (658ef2b60)
Improve this page