math.sqrt

From GMod Wiki

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