BIN2DEC

Purpose: BIN2DEC converts a binary string to an integer.


 Syntax:

 RetVal% = BIN2DEC(BinaryMainStr$)

 Parameters:

  • RetVal% Returned integer containing decimal representation of BinaryMainStr$ parameter.
  • BinaryMainStr$ String containing binary number to be converted to decimal integer.

Example:


 RetVal% = BIN2DEC("0101")

Result: RetVal% will equal 5