math.deg
From GMod Wiki
Function | |
Syntax |
math.deg( x ) Where is this used? |
Description: | |
Converts x from radians to degrees. | |
Returns: | Number number |
Part of Library: | Math |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.deg]Math.deg [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Converts 90 radians to degrees (obviously, not a right angle) |
---|---|
Used on | |
Code | print(math.deg(90)) |
Output | 5,156.62016 (not tested - gathered from google calculator) |