math.ceil
From GMod Wiki
| Function | |
| Syntax |
math.ceil( Float value ) Where is this used? |
| Description: | |
| Returns value rounded up to the nearest whole number. | |
| Returns: | Integer |
| Part of Library: | Math |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.ceil]Math.ceil [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | Rounds up the given number. |
|---|---|
| Used on | |
| Code | print(math.ceil(0.2)) |
| Output | 1 |