HUGO
News Docs Themes Community GitHub

math.Sub

Subtracts one or more numbers from the first number.

Syntax

math.Sub VALUE VALUE...

Returns

any

Alias

sub

If one of the numbers is a float, the result is a float.

{{ sub 12 3 2 }} → 7

Last updated: January 1, 0001
Improve this page