Power of(幂运算 (Power of))¶
Supported in: Batch, Faster, Streaming
Calculates power of expression to exponent. If any of the values is null, returns null.
Expression categories: Numeric
Declared arguments¶
- Exponent: The exponent for the power of.
Expression\ - Expression: The base for the power of.
Expression\
Output type: Double
Examples¶
Example 1: Base case¶
Argument values:
- Exponent: 3
- Expression: 10
Output: 1000.0
Example 2: Base case¶
Argument values:
- Exponent: 3.0
- Expression: 10
Output: 1000.0
Example 3: Null case¶
Description: Whenever one of the arguments is null, the output will be null.
Argument values:
- Exponent: null
- Expression: 10
Output: null
Example 4: Null case¶
Description: Whenever one of the arguments is null, the output will be null.
Argument values:
- Exponent: 3
- Expression: null
Output: null
中文翻译¶
幂运算 (Power of)¶
支持模式:批量 (Batch)、快速 (Faster)、流式 (Streaming)
计算表达式 (expression) 的指定指数 (exponent) 次幂。若任一参数为 null,则返回 null。
表达式类别: 数值型 (Numeric)
声明的参数¶
- 指数 (Exponent): 幂运算的指数。
表达式\<数值型> - 表达式 (Expression): 幂运算的底数。
表达式\<数值型>
输出类型: 双精度浮点型 (Double)
示例¶
示例 1:基础情况¶
参数值:
- 指数: 3
- 表达式: 10
输出: 1000.0
示例 2:基础情况¶
参数值:
- 指数: 3.0
- 表达式: 10
输出: 1000.0
示例 3:空值情况¶
说明: 当任一参数为 null 时,输出结果将为 null。
参数值:
- 指数: null
- 表达式: 10
输出: null
示例 4:空值情况¶
说明: 当任一参数为 null 时,输出结果将为 null。
参数值:
- 指数: 3
- 表达式: null
输出: null