Re: How to convert to and from HEX?
- Posted by mattlewis (admin) May 31, 2013
- 1207 views
tonysteward said...
I am able to convert a sequence to hex for storage in a bin file but how do I convert it back?
As in if I have a sequence "12" and pass that through th following function I get the desired result. But how can I convert that back again
Use %x inside of printf / sprintf:
printf(1, "18 = #%x\n", 18)
Matt