pow
Returns x raised to the power of y.
Syntax
pow(x, y)
Parameters
Parameter |
Type |
Description |
---|---|---|
x |
number |
Number to be raised to the specified power |
y |
number |
The power. |
Return
Returns x raised to the power of y.
Examples
Python
import math
z = math.pow(2, 3)
# z now is equal to 8
NexScript
z = pow(2, 3)
% z now is equal to 8