Garry's Mod Wiki

Garry's Mod Wiki

  string math.IntToBin( number int )

Description

Converts an integer to a binary (base-2) string.

Arguments

1 number int
Number to be converted.

Returns

1 string
Binary number string. The length of this will always be a multiple of 3.

Example

Prints the binary representation of 4

Output: 100

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...