NO

Author Topic: Numeric Systems  (Read 3165 times)

eagle3

  • Guest
Numeric Systems
« on: February 09, 2008, 06:43:10 PM »
hi there

i want to design a program for converting between numeric systems (Hex to decimal) originally

and this is an exampla of the code i wanna convert

0002A208305AD58F4B8512E2996401754476724DF58C3052F7C32B1A86CF662FE6B44CB32BD44EDEA4D215E991729FABA0F493160019AFBE00796EB4D89C5FBF31A7FDB356373BD812D4

can any one help me coding it

thank you

severach

  • Guest
Re: Numeric Systems
« Reply #1 on: February 16, 2008, 07:55:40 AM »
The conversion is easy. Convert 0-9,A-F to integer 0-15. Multiply the previous result by 16 and add. Finding a place to store a number that big so you can do math on it is the tough part. Bignum libraries handle the chore but may be more than you need. You might be able to adapt the simple math that calculates CD keysto what you need.

http://www.codeproject.com/KB/cs/Product_Key_Finder.aspx