We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Using the C51 tools, I am trying to convert a long Hex number, entered as an ASCII string, to its decimal equivalent. For example: the string could be: "ABCDEF1234565" And I would need to convert to the string: "188900967593046" The problem I have found is that since there does not seem to be a true 'double' variable type, I cannot do a direct conversion of the number. Which would consist of converting the ASCII hex to a variable, and then printing it out as decimal. I have tried several methods, but cannot get past needing variable storage larger than 32bits. Any suggestions on how to achieve this would be greatly appreciated... Thanks! David Marten
Oh, and by the way, the bug I was referring to in that post has been fixed with C51 V6.22. --Dan Henry