math.Floor
Returns the greatest integer value less than or equal to the given number.
- Syntax
- math.Floor VALUE
- Returns
- float64
Usage
The math.Floor function returns the greatest integer value less than or equal to the given number.
Examples
{{ math.Floor 1.9 }} → 1With a negative number:
{{ math.Floor -1.9 }} → -2Last updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page