I am looking to convert a string (e.g. "F8A2" or "-927") into its numeric value. I figure I need to do it one char at a time but how does "A" become "10" and "9" become the value 9. I need to do math on these characters so they need to become numbers. Is there a function for this or do I need to create a huge switch loop that sets each valid decimal or hexadecimal character into another int variable.
Thanks in advance.