Difference between revisions of "Pow - Math"
Jump to navigation
Jump to search
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...) |
imported>JLundin |
||
Line 1: | Line 1: | ||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category:Papyrus]] | [[Category:Papyrus]] | ||
[[Category:Non-delayed Native Function]] | |||
'''Member of:''' [[Math Script]] | '''Member of:''' [[Math Script]] | ||
Revision as of 07:57, 12 September 2012
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