How to divide.(Power Automate Cloud flows)

03/10/2024

Japanese version.

This section shows how to obtain normal division (get in a small number) and quotient and remainder.

Steps

All samples are expressions with fixed values.

If you wish to use variables or dynamic content, see also.

Normal division (get in a small number).

This is done with the div function of the expression.

If either argument of the div function is specified as a Float-type variable or a fixed-valued small number, the result will be a small number.

For example, the expression "5 divided by 2" is specified as follows.

div(5,2.0)

Integer part (quotient)

This is done with the div function of the expression.

If either argument of the div function is specified as an Integer-type variable or a fixed-valued integer, the result will be a integer.

For example, the expression "5 divided by 2" is specified as follows.

div(5,2)

The result will be an integer even if set to a Float-type variable.

Small part (remainder)

This is done with the mod function of the expression.

The argument can be either a small number or an integer.

For example, the remainder of "5 divided by 2" is specified in the expression as follows.

mod(5,2.0)

---

Links

Introduction(Power Automate Cloud flows)