math.pow

From Garry's Mod
Jump to: navigation, search
 math.pow( )

Contents

Description

Returns x raised to the power 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 a NaN. If both x and y are finite, x is negative, and y is not an integer then math.pow(x, y) is undefined.

Arguments

number x

Base.

Arguments

number y

Exponent.

Returns

number

y power of x
Personal tools
Navigation