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

Sqrt

float Maths.Sqrt(float value)
Calculates the square root of the supplied value.

The square root is the number which, when multiplied by itself, equals value.

Example:

Display("The square root of 4 is %d!", FloatToInt(Maths.Sqrt(4.0)));
displays the square root of 4 (rounded down to the nearest integer).

See Also: Maths.Cos, Maths.RaiseToPower, Maths.Sin, Maths.Tan


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