Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>convert a binary string into a decimal number</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Convert a binary string into a decimal number
------------------------------------------------------------------------------

 Syntax

        GT_BtoD(<cBin>) --> <nDec>

 Arguments:

      <cBin>   is a binary number held as a character string.

 Returns:

      <nDec>   is a decimal integer

 Description:

      This function takes a stream of '1's and '0's representing a binary
      number, and converts them to a decimal.

 Examples:

      ? GT_BtoD('11111111')        // 255

      ? GT_BtoD('1011')            // 11

 Source: GTMATH03.PRG

 Author:  Philip Ide

See Also: GT_DTOB() GT_BINARY()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson