math.deg

From GMod Wiki

Revision as of 14:41, 13 September 2009 by UnrealomegaBot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax math.deg( x )
Where is this used?
Description:
Converts x from radians to degrees.
Returns: Number number
Part of Library: Math
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Math.deg]Math.deg [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionConverts 90 radians to degrees (obviously, not a right angle)
Used onNewerShared.png
Code
 
print(math.deg(90))
 
Output5,156.62016 (not tested - gathered from google calculator)


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox