math.abs
From GMod Wiki
Function | |
Syntax |
math.abs( Number number ) Where is this used? |
Description: | |
Returns the absolute value of the first argument. | |
Returns: | Number absoluteValueOfNumber |
Part of Library: | Math |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.abs]Math.abs [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Prints the absolute value of -500.25 |
---|---|
Used on | |
Code | print( math.abs( -500.25 ) ) |
Output | 500.25 |