

终止支持通知： AWS 将于 2025 年 12 月 15 日终止对的支持 AWS IoT Analytics。2025 年 12 月 15 日之后，您将无法再访问 AWS IoT Analytics 控制台或 AWS IoT Analytics 资源。有关更多信息，请参阅[AWS IoT Analytics 终止支持](https://docs.aws.amazon.com/iotanalytics/latest/userguide/iotanalytics-end-of-support.html)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# power(Decimal, Decimal)
<a name="math-power"></a>

返回第一个参数的第二个参数次幂的值。在代入函数之前，`Decimal` 参数舍入到双精度。

示例：`power(2, 5)` = 32.0


| 参数类型 1 | 参数类型 2 | Output | 
| --- | --- | --- | 
| `Int` / `Decimal` | `Int` / `Decimal` | `Decimal` (双精度)，返回第一个参数的第二个参数次幂的值。 | 
| `Int` / `Decimal` / `String` | `Int` / `Decimal` / `String` | `Decimal` (双精度)，返回第一个参数的第二个参数次幂的值。所有字符串均转换为 `Decimals`。如果任何 `String` 无法转换为 `Decimal`，则结果为 `Undefined`。 | 
| 其他值 | 其他值 | `Undefined`. | 