math.IntToBin
From GMod Wiki
Function | |
Syntax |
math.IntToBin( Integer int ) Where is this used? |
Description: | |
Calculates the binary representation of the number and returns it as a string. | |
Returns: | String |
Part of Library: | Math |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.IntToBin]Math.IntToBin [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Returns the integer 21s binary representation. |
---|---|
Used on | |
Code | print(math.IntToBin(21)) |
Output | 10101 |