githubEdit

$subtract

Subtracts the second number from the first number.

Signature

{{$subtract number1 number2 [format]}}

Arguments

Name
Description
Type
Required

number1

The first number in a subtraction.

Number

number2

The second number in a subtraction.

Number

format

Format string used to format the result

String

Returns

Returns the total.

Example

{{$subtract subtotal discount}}

Last updated

Was this helpful?