Garry's Mod Wiki

math.BinToInt

math.BinToInt

  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

Special Pages


Wikis

?

Render Time: 63ms

DB GetPage 46
Generate Html 2
SaveChanges (1) 6
Render Body 0
Render Sidebar 6