Difference between revisions of "Sqrt - Math"
Jump to navigation
Jump to search
imported>JLundin |
imported>JustinOther m (→Examples: Floatified float params) |
||
Line 19: | Line 19: | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
float x = sqrt(4) ; x == 2 | float x = sqrt(4.0) ; x == 2 | ||
float y = sqrt(10) ; y ~= 3.16228 | float y = sqrt(10.0) ; y ~= 3.16228 | ||
</source> | </source> | ||
== See Also == | == See Also == | ||
*[[Math Script]] | *[[Math Script]] |
Latest revision as of 10:54, 8 October 2012
Member of: Math Script
Calculates the square root of the number it is given.
Syntax[edit | edit source]
float Function sqrt(float afValue) native global
Parameters[edit | edit source]
- afValue: The value to get the square root of.
Return Value[edit | edit source]
The square root of the passed-in value.
Examples[edit | edit source]
float x = sqrt(4.0) ; x == 2
float y = sqrt(10.0) ; y ~= 3.16228