Skip to main content

Subtract

Module Info:

moduleType: "internal",
moduleName: "subtract"

Description

The subtract function subtracts B from A.

Inputs

NameTypeRequired
Anumber
Bnumber

Outputs

NameType
resultnumber
errorMessagestring

The errorMessage property will only be defined if any of B or A are not numbers.

Examples

Inputs Outputs
A B result errorMessage
10 4 6 undefined
10 -4 14 undefined
10 "bar" undefined "One of the arguments provided was not a number"