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

 Syntax

        GT_B36ToD(<cB36Num>) --> <nDec>

 Arguments:

      <cB36Num> is a character string representing a Base36 number
                This need to be in upper case.

 Returns:

      <nDec>    is a decimal integer

 Description:

      This function provides a method of unpacking numbers stored in
      Base36 format to decimal integers.  Base36 allows large numbers
      to be stored using very few bytes. Four bytes could hold a number
      as high as 1,679,615.  Useful for lookup table ID's.


 Examples:

      ? GT_B36ToD('ZZZZ')       // 1679615

      ? GT_B36ToD('11')         // 37

 Source: GTMATH07.PRG

 Author:  Philip Ide

See Also: GT_DTOB36()

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