Azure 逻辑应用或 Power Automate 中的指数计算

Exponent calculation in Azure Logic Apps or Power Automate

如何在 Azure 逻辑应用程序或 Power Automate 中执行指数表达式。我在表达式中找不到任何可以实现此目的的数学函数。例如 int^int.

我已经把文档改红了,但是似乎没有任何功能可以达到这个目的。 https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#math-functions

据我所知,Azure logic app不直接支持指数表达式。但是您可以使用 Inline code 来执行指数计算。

Inline code使用JavaScript,有两种语法供您执行指数计算:

1.

base ** power

2.

Math.pow(base , power)

逻辑应用程序工作流是这样的:

注:

Azure logic app 需要 integration account.