Sqrt - Math
Jump to navigation
Jump to search
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