06-20-2008 08:36 AM
06-20-2008 09:09 AM
I don't understand your question. Do you want to store a number in a numeric array? So no need to conversion for this! (you are maybe confusing a number with its representation -decimal, octal, hexadecimal, binary)
If on the other hand you want to store a hex representation of the number in a string (character array) you may find useful the %X operator: sprintf (string, "0x%x", number); will return a string with value "0x14" with number = 20
06-20-2008 09:45 AM
06-20-2008 07:39 PM