Loc Dai Le
Loc Dai Le

Reputation: 1697

Exponent calculation in Azure Logic Apps or Power Automate

How can I do an exponent expression in Azure Logic Apps or Power Automate. I can't find any Math functions in expression that can achieve this. For example int^int.

I have red the documentation, but it seems like there is not any function for this purpose. https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#math-functions

Upvotes: 1

Views: 884

Answers (1)

Frank Borzage
Frank Borzage

Reputation: 6796

As far as I know, Azure logic app does not support exponent expression directly. But you can use Inline code to execute exponential calculations.

Inline code uses JavaScript, there are two syntaxes for you to execute exponential calculations:

1.

base ** power

2.

Math.pow(base , power)

The logic app workflow is like this:

enter image description here

Note:

Azure logic app needs integration account.

Upvotes: 1

Related Questions