Pow - Math

From the CreationKit Wiki
Revision as of 18:28, 4 March 2010 by imported>Jlundin (New page: Category:Scripting Category:Papyrus '''Member of:''' Math Script Raises x to the y power, usually written as x<sup>y</sup>. == Syntax == <source lang="papyrus"> float Functio...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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, 2) ; x == 4
float y = pow(2, 8) ; y == 256

See Also