Math: power
Calculate the power of a number (value ^ exponent). Negative and fractional
exponents are supported (e.g. 2 ^ -1 = 0.5, 2 ^ 0.5 ≈ 1.414…).
Example
# Example with no default:
Input:
- value: 2
- exponent: 5
Output: 32
# Example with default value 2:
Input:
- exponent: 5
Output: 32
# Example with default exponent 5:
Input:
- value: 2
Output: 32
Parameters
Default value
Optional value to use in the power operation if no value input is provided.
Default exponent
Optional exponent to use in the power operation if no exponent input is provided.
Input
Value (required if no default value)
The base of the power operation.
Exponent (required if no default exponent)
The exponent to raise the value to. Negative and fractional exponents are supported.
Output
Number
The result of raising the value to the power of the exponent.