Binary to Decimal

Convert a binary string representation to its decimal number equivalent.

Code

Utilities
int(binary, 2)

Parameters

Binary string to convert.

Server

More Python Snippets