sub. Math Function.(Power Automate Cloud flows)

Japanese version.

Subtracts two specified numbers: the first number minus the second number.

Spec

sub(<minuend>, <subtrahend>)
ArgumentDefaultDescription
minuendRequired fieldSource value.
subtrahendRequired fieldSubtract value.

How to use

In most cases, it is used in the "Value" when "Initialize variable" or "Set variable" of type "Integer" or "Float".

Click on the "Expressions" tab, sub, and the function name and () will be set in the formula field.

The first argument is the original value and the second is the value to be subtracted.

If you want to use dynamic contents or variables, specify them specially.

(How to get dynamic content with an expression)

If you see something like the following, your settings are complete.

Click on the purple icon to change the function.

As an example, sub(25,2.5) will result in 19.5.

---

Links

Math Functions