BIN2DEC
Purpose: BIN2DEC converts a binary string to an integer.
RetVal% = BIN2DEC(BinaryMainStr$)
Parameters:
Example:
RetVal% = BIN2DEC("0101")
Result: RetVal% will equal 5