PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Subtract

Subtracts one number from another, whole or decimal.

Subtract takes the second number away from the first and gives you the difference. It works with whole numbers and decimals alike. Use it for balances, remaining stock, or to count down.

Add the action

In the Process Designer toolbox, open Numerical and pick Subtract (or type Subtract in the search box).

The Subtract action properties: First number, Second number and Result

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
First numberInputNumber (whole or decimal)YesThe number to subtract from.
Second numberInputNumber (whole or decimal)YesThe number to take away.
ResultOutputNumber (whole or decimal)YesFirst number minus Second number.

Example

First numberSecond numberResult
1046
410.5-6.5
5.750.255.5

Good to know

  • Decimals are exact, with no rounding error.
  • When the difference is a whole number, you get a whole number, so you can map Result to an Integer variable.
  • Use a dot for decimals. A comma is read as a thousands separator and ignored (1,5 counts as 15).
  • Text that is not a number stops the step with Invalid input.; an empty input stops it with Input was null. Please, fill it.

On this page