Hello, How can I convert decimal to hexadecimal by Keil?. such as,convert from 2185 dec. to 889 hex. thank you. hayinga
Remember - a number is just a number; binary, hex, decimal, Roman Numerals, etc, etc, are just different ways of displaying the number. 2185 (dec) = 0x889 = 100010001001 are all the same number - just displayed in different formats. Do you really mean that you want to turn a number into an ASCII string? eg, turn the number 2185 into the string "889"; ie, two '8' characters, followed by a '9' character...?