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:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page