title: Is there a radix function in ruby?
body: <p>While reading through another question here, on creating a URL shortening service, it was suggested to take the ID of the row, and then convert it to base 62 (0 to 9, a to z, and A to Z).  Is there a standard function to accomplish this in Ruby?</p>
  
  <p>Edit:
  Not sure if I was clear enough.</p>
  
  <p>Something like this:
  123456.radix(62)</p>
  
  <p>should give the base 62 of 123456.</p>
  
  <p>I'm thinking of writing one, if it isn't already there.  </p>