I have data received in ascii hex values such as 2B for + 30 for 0 , 32 for 2 etc. Can anyone give me good idea on how to convert a string of these values into an integer?
For instance I have a string which is terminated by 30 30 37 in sNum and tried
atoi sNum iNum then formated it for display with
numtostr iNum sNum2 but instead of seeing 7 displayed 37 is displayed. Must be something fundamentally wrong with what I'm doing.
Thanks in advance.
For instance I have a string which is terminated by 30 30 37 in sNum and tried
atoi sNum iNum then formated it for display with
numtostr iNum sNum2 but instead of seeing 7 displayed 37 is displayed. Must be something fundamentally wrong with what I'm doing.
Thanks in advance.