Garry's Mod Wiki

math.pow

number math.pow( number x, number y )

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

1 number x
Base.
2 number y
Exponent.

Returns

1 number
y power of x

Page Links


Special Pages


Wikis

?

Render Time: 46ms

DB GetPage 4
Generate Html 7
SaveChanges (1) 21
Render Body 0
Render Sidebar 12