Converts a binary string to a decimal number
The binary string to convert (with or without 0b prefix)
The decimal representation as a number
Error if input is not a valid binary string
Converts a binary string to a decimal number