math.sqrt

From GMod Wiki

Revision as of 10:10, 22 September 2009 by Ashashinand (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax math.sqrt( x )
Where is this used?
Description:
Returns the square root of x.
Returns: Number number
Part of Library: Math
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Math.sqrt]Math.sqrt [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionFinds the square root of 4.
Used onNewerClient.png
Code
print(math.sqrt(4))
Output2.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox