Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>hex2dec() - convert a hexadecimal string to an integer</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     hex2dec() - convert a hexadecimal string to an integer
  Usage:    <integer> = hex2dec(<hexstring>)
  Params:   string <hexstring> in the format "nnnn" where nnnn is
            a hexadecimal number in either 2 byte or 4 byte
            format.

  Returns:  an unsigned integer equal to the decimal equivalent
            of the <hexstring>, or -1 if the <hexstring> contains
            invalid hexadecimal characters.

 ---------------------------------- Example ---------------------------------

                 ? hex2dec("FFFF")
                 * prints 65535


See Also: dec2hex() and() or() xor() shr() shl() num2bin()

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