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>turns a hex string into a decimal integer</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Turns a Hex string into a decimal integer
------------------------------------------------------------------------------

 Syntax

        GT_HtoD(<cHex>) --> <nDec>

 Arguments:

      <cHex>  is a hexadecimal number, held as a string

 Returns:

      <nDec>  is a decimal integer

 Description:

      This function allows hex numbers to be converted into decimals.
      This allows calculations to be applied on hex values
      (e.g. incrementing).

 Examples:

      ? GT_HtoD('FF')       // 255

      ? GT_HtoD('F')+1      // 16

      ? GT_HtoD('A')*2      // 20


 Source: GTMATH04.PRG

 Author:  Philip Ide

See Also: GT_DTOH()

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