|
-
March 7th, 2003, 06:31 PM
#1
Alphanumeric division (base 10 to base 16)
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|