Need to convert int value to hex value
Posted
by SA
on Stack Overflow
See other posts from Stack Overflow
or by SA
Published on 2010-04-25T05:05:46Z
Indexed on
2010/04/25
5:13 UTC
Read the original article
Hit count: 275
Hi,
I need to convert char to hex values. Refer to the Ascii table but I have a few examples listed below:
- int 1 = 31
- 2 = 32
- 3 = 33
- 4 = 34
- 5 = 35
- A = 41
- a = 61 etc
Therefore int test = 12345; Need to get the converted i = 3132333435
© Stack Overflow or respective owner