Folks,

Alphanumeric division

Folks,

I have a dilemma. I have an alphanumeric number that is 24 digits long, which is base ten. I need to convert it to base 16. I know that I can divide the whole number by 16 to get the first digit, and then divided the answer again to get the next digit.

Example:

Start with 513 (we all know that 201h)

513/16 = 32 R1
32/16 = 2 R0
2/16 = 0 R2

Unroll it and you have the 201. Now I know that it is possible to do long division on a alphanumeric number, but I was wondering if there way any preexisting code samples to do alphanumeric division. Or is there a better way to achieve what I am trying to do?

Sam