Pow - Math

Member of: Math Script

Raises x to the y power, usually written as xy.

SyntaxEdit

float Function pow(float x, float y) native global

ParametersEdit

  • x: The value to raise.
  • y: The power to raise the value to.

Return ValueEdit

The result of xy.

ExamplesEdit

float x = pow(2, 2) ; x == 4
float y = pow(2, 8) ; y == 256

See AlsoEdit