math.IntToBin

From GMod Wiki

Revision as of 19:48, 9 December 2009 by Olivernoerd (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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