HUGO
Menu
GitHub 90221 stars Mastodon

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.5