math.pow
Returns x^y
. In particular, math.pow(1.0, x)
and math.pow(x, 0.0)
always return 1.0
, even when x is a zero or NaN. If both x and y are finite, x is negative, and y is not an integer then math.pow(x, y)
is undefined.
math.pow(x: number, y: number): number
Arguments
Name | Description | Type |
---|---|---|
x | N/A | number |
y | N/A | number |
Returns number