Pow - Math

From the Fallout4 CreationKit Wiki
Revision as of 14:11, 2 December 2015 by imported>Plplecuyer
(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[edit | edit source]

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

Parameters[edit | edit source]

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

Return Value[edit | edit source]

The result of xy.

Examples[edit | edit source]

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

See Also[edit | edit source]