Skip to the content
Documentation

sub

No ratings yet

Summary

Subtracts all remaining parameters from the first parameter.

Usage

input|sub( value [, ...] )

Parameters

Name Type Description Required
value number A number that should be included in the subtraction. Yes.

Returns

Number (result of subtraction).

Description

This operator subtracts all remaining parameters from the first parameter and returns the result. If an input parameter is provided, all other parameters will subtracted from it.

Examples

Example 1
{10|sub( 2 )}

or

{sub( 10, 2 )}

The following output will be produced: "8".

Example 2
{sub( 10, 2, 3 )}

The following output will be produced: "5".

Example 3
{10|sub( 10, 2, 3 )}

The following output will be produced: "-5".

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.