Garry's Mod Wiki

Garry's Mod Wiki

  number math.BinToInt( string string )

Description

Converts a binary string into a number.

Arguments

1 string string
Binary string to convert

Returns

1 number
Base 10 number.

Example

Will print the string "101010101" as a number in console.

print( math.BinToInt( "101010101" ) )
Output: 341

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...