Binary to Decimal

Convert a binary string representation to its decimal number equivalent.

Code

Utilities
binary.to_i(2)

Parameters

Binary string to convert.

Server

More Ruby Snippets