This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Dec to hex

I had declared an variablw like below,

unsigned int i;

Normally the data representation may be in either decimal or hexadecimal.

In my project the value of 'i' is decimal i need that unsigned integer of decimal form to hexadecimal.

I coudnt use _toacii function since it is truncating the upper nibble of the decimal int.

Can anybody say is there any way to get the equivalent hex of the original decimal integer.

Parents Reply Children