$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}}{
"subtotal":100,
"discount": 21.5
}78.5
Last updated
Was this helpful?