Pow - Math

From Creation Kit
Jump to: navigation, search

Member of: Math Script

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

Syntax

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

Parameters

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

Return Value

The result of xy.

Examples

float x = pow(2.0, 2.0) ; x == 4
float y = pow(2.0, 8.0) ; y == 256

See Also