Difference between revisions of "Pow"
From King Arthur's Gold Wiki
Shadlington (Talk | contribs) (Created page with "<onlyinclude> Returns base raised to the power exponent. </onlyinclude> This method has 3 variants, for different argument types. <syntaxhighlight lang="cpp"> float Pow(float ba...") |
Shadlington (Talk | contribs) |
||
Line 2: | Line 2: | ||
Returns base raised to the power exponent. | Returns base raised to the power exponent. | ||
</onlyinclude> | </onlyinclude> | ||
+ | |||
+ | This method is part of the Maths namespace so you need to prefix calls to it with 'Maths::'. | ||
This method has 3 variants, for different argument types. | This method has 3 variants, for different argument types. | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
− | float Pow(float base, float exponent) | + | float Maths::Pow(float base, float exponent) |
− | double Pow(double base, double exponent) | + | double Maths::Pow(double base, double exponent) |
− | float Pow(float base, int exponent) | + | float Maths::Pow(float base, int exponent) |
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category:Global Functions]] | [[Category:Global Functions]] |
Latest revision as of 22:23, 6 September 2012
Returns base raised to the power exponent.
This method is part of the Maths namespace so you need to prefix calls to it with 'Maths::'.
This method has 3 variants, for different argument types.
float Maths::Pow(float base, float exponent) double Maths::Pow(double base, double exponent) float Maths::Pow(float base, int exponent)