math.IntToBin

From GMod Wiki

Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Math.IntToBin]Math.IntToBin [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionReturns the integer 21s binary representation.
Used onNewerShared.png
Code
print(math.IntToBin(21))
Output10101


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox