spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Maths functions and properties

RaiseToPower

float Maths.RaiseToPower(float base, float exponent)
Calculates the value of base raised to the power exponent.

This means that base is multiplied by itself exponent times.

Example:

float value = Maths.RaiseToPower(4.0, 3.0);
calculates 4 to the power 3 (which is 64).

See Also: Maths.Sqrt


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.