From: Robert Dober Date: 2007-07-14T16:45:52+09:00 Subject: Re: Base 26 On 7/13/07, Stefan Rusterholz wrote: > Stefan Rusterholz wrote: > > Mike Moore wrote: > >> Hey friends! What is the best way to convert a Numeric to a string > >> encoded > >> with base 26? I want the string to contain just alpha characters, not > >> alphanumeric characters. For now I'm using num.to_s(26).tr('0-9a-p', > >> 'a-z') > >> and I'm wondering if there is a more concise way. > >> > > > > You're looking too far away. > > int.to_s(26) > > > > Regards > > Stefan > > OK, I should read before answering :) Honestly no, it was quite funny :) Robert -- I always knew that one day Smalltalk would replace Java. I just didn't know it would be called Ruby -- Kent Beck