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:
October 21, 2026
:
content: Apply style guide to math functions (658ef2b60)
Improve this page