math.rad

From GMod Wiki

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



Example

DescriptionShows how to use the function
Used onNewerShared.png
Code
 
print(math.rad(90))
 
Output1.57079633


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox