Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
幂数
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
power 函数可用于 自定义过滤条件 和 表计算,以将数字提升为给定指数的幂。
语法
power(base, exponent)
power 函数通过将 base 提升为给定 exponent 的幂来对其求值。
示例
power 函数可用于将一个数字提升为另一个数字的幂。例如,23 可以写成:
power(2, 3)
通常,power 函数与字段引用或表达式一起使用。
例如:
power(${order_item.standard_deviation_profit}, 2)
注意事项
power 函数还可用于计算数字的 n 次方根,方法是将 1/n 用作 exponent。例如,7 的立方根(第 3 个根)为:
power(7, 1/3)
对于平方根(第 2 个根),只需使用 sqrt 函数即可。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-05-10。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2026-05-10。"],[],[]]