Skip to main content

Math: power

Calculate the power of a number (value ^ exponent).

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

a (required if no default value)
Dividend to use in the modulo.
n (required if no default exponent)
Modulus to use in the modulo operation.

Output

Number

The result of raising the value to the power of the exponent.