tags:

views:

68

answers:

1

Is there a simple algorithm where by I can convert an numeric value to alphanumeric and reliably convert back it to the same numeric ?

ex: 12345 -> 00A3DF -> 12345

Thanks

+2  A: 

I assume when you say alphanumeric you mean hexadecimal. This has already been answered:

http://stackoverflow.com/questions/74148/how-to-convert-numbers-between-hex-and-decimal-in-c http://stackoverflow.com/questions/1139957/c-convert-integer-to-hex-and-back-again

Ron Warholic
actually this would probably satisfy my requirement. thanks
jg