Difference between revisions of "Sqrt - Math"
Jump to navigation
Jump to search
imported>Jlundin (New page: Category:Scripting Category:Papyrus '''Member of:''' Math Script Calculates the square root of the number it is given. == Syntax == <source lang="papyrus"> float Function sqr...) |
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:58, 12 September 2012
Member of: Math Script
Calculates the square root of the number it is given.
Syntax
float Function sqrt(float afValue) native global
Parameters
- afValue: The value to get the square root of.
Return Value
The square root of the passed-in value.
Examples
float x = sqrt(4) ; x == 2
float y = sqrt(10) ; y ~= 3.16228