Parse a decimal number from a binary string