I receive a hex value and I need to convert it to a decimal number to pass on to another device.
Code:
uint8 a = 0x10; Send(a);
and
Code:
uint8 a = 16; Send(a);
Do you mean that you must send the two digits separate? Otherwise this doesnt't make sence, hex or decimal, the character will always be a binary number from hardware point of view.
Comment