# POW

将第一个输入提升到第二个输入的幂。

这是 [`POWER`](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/mathematical/power.htm) 函数的别名。

## 语法

```
POW(X, P)
```

## 参数

#### X

类型：`numeric`

数值。

#### P

类型：`numeric`

数值。

## 返回

类型：`double`

`X` 的 `P` 次幂。

***

## 示例

| X | P | 输出 |
| --- | --- | --- |
| 1 | 1 | 1.0 |
| 2 | 2 | 4.0 |
| -1 | 2 | 1.0 |
| -2 | -2 | 0.25 |
| 0.5 | 0.5 | 0.7071067811865476 |
| 0.5 | 0 | 1.0 |
| 0 | 0 | 1.0 |