in reply to Algoritm for converting string to number?

Tell us more. What you are describing so far is hashing, but to guarantee unique hash values you need to know a lot about the range of possible input values and the allowed size of the output hash (number of bits in the int).

True laziness is hard work
  • Comment on Re: Algoritm for converting string to number?