This question already has an answer here:
Convert Hex to Decimal
Example:
It would ask a Hex. Shown below.
Enter Hex: 8000 8000 1000 0100
Then,
The Result: 32768 32768 4096 256
Convert each hex to decimal.
HEX = DECIMAL
8000 = 32768
8000 = 32768
1000 = 4096
0100 = 256
P.S. : The original code does not belong to me. For original codes please refer to MSDN
use string.split(' ') to get your individual hex-numbers as a string-array. Then you can call
to convert each hex into its decimal representation.