Need to convert ascii 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:23 UTC
Read the original article Hit count: 279

Filed under:
|
|

Hi,

I need to convert ascii to hex values. Refer to the Ascii table but I have a few examples listed below:

  • ascii 1 = 31
  • 2 = 32
  • 3 = 33
  • 4 = 34
  • 5 = 35
  • A = 41
  • a = 61 etc

But I am using int instead of string values. Is it possible to do that. Therefore int test = 12345; Need to get the converted i = 3132333435

© Stack Overflow or respective owner

Related posts about c#

Related posts about ascii