Function Friday - Add, Sub, Mul, Div
One of the weakest areas for Power Automate’s functions is in the math and numbers area. For this week’s #FunctionFriday, I will delve into the first batch of math-related functions, I’m going to cover the basic 4: add (addition), sub (subtraction), mul (multiplication), and div (division).
The pattern is basically the same for all of them:
add(5.5, 6) //returns 11.5 sub(5.5, .5) //returns 5.0 mul(3, 3) //returns 9 div(9, 3) //returns 3 You have the function name and then two number parameters. And therein lies the most frustrating part of the functions. You can only pass two parameters. If you need to do math with more than two numbers, you have to call the function multiple times. Like so: