Robert Dober
7/14/2007 7:47:00 AM
On 7/13/07, Phrogz <phrogz@mac.com> wrote:
> On Jul 13, 2:39 pm, Stefan Rusterholz <apei...@gmx.net> 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.
> > Anyway, if you need that instead of what to_s(26) already does, then I
> > don't know a shorter way.
>
> How about (i+10).to_s(36)
>
What is this thread, first Stefan now you?
Robert
--
I always knew that one day Smalltalk would replace Java.
I just didn't know it would be called Ruby
-- Kent Beck