math.BinToInt
From GMod Wiki
Function | |
Syntax |
math.BinToInt( String bin ) Where is this used? |
Description: | |
Return the integer value the binary string represents. | |
Returns: | Integer |
Part of Library: | Math |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.BinToInt]Math.BinToInt [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Returns the binary value of 10101s integer value, 21. |
---|---|
Used on | |
Code | print(math.BinToInt("10101")) |
Output | 21 |
Additional Notes
- N/A