math.modf
From GMod Wiki
| Function | |
| Syntax |
math.modf( x ) Where is this used? |
| Description: | |
| Returns two numbers, the integral part of x and the fractional part of x. | |
| Returns: | Number number |
| Part of Library: | Math |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.modf]Math.modf [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Returns two numbers, the integral part of a number and the fractional part of number. |
|---|---|
| Used on | |
| Code | i, f = math.modf(18.4) |
| Output | i = 18, f = 0.4 |