math.Sub
Returns the result of subtracting one or more numbers from the first number.
- Syntax
- math.Sub VALUE VALUE...
- Returns
- any
- Alias
- sub
Usage
The math.Sub function returns the result of subtracting one or more numbers from the first number. If one of the numbers is a float, the result is a float.
Examples
{{ math.Sub 12 3 2 }} → 7
{{ math.Sub 12 3.5 }} → 8.5Last updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page