math.huge
From GMod Wiki
| Function | |
| Syntax |
math.huge Where is this used? |
| Description: | |
| Represents infinity. | |
| Returns: | Float |
| Part of Library: | Math |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.huge]Math.huge [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | This code returns a number representing Infinity. |
|---|---|
| Used on | |
| Code | print(math.huge) |
| Output | 1.#INF |
Additional Notes
- This is NOT a function. It is a value in the math library's table.
- Will always evaluate as larger than anything else except math.huge.
- You can not change its value.
math.huge == math.huge +5 -- this is true
- Is equivalent to anything divided by 0.