Robert Klemme
11/24/2007 3:58:00 PM
2007/11/24, Andrei Maxim <andrei@andreimaxim.ro>:
> Hm, I'm pretty sure I meant " turn 3 into "three" or "two thousand and one"
> into 2001". :)
You are not the OP.
> On 11/24/07, Robert Klemme <shortcutter@googlemail.com> wrote:
> >
> > 2007/11/24, Andrei Maxim <andrei@andreimaxim.ro>:
> > > I think the OP wants to know how he could turn 3 into "three" or 2001
> > into
> > > "two thousand and one".
> >
> > I could also imagine that the OP wants conversion of char sequences to
> > a single number (see below).
> >
> > Amazing: three replies and three different interpretations of the
> > question:
> >
> > 1. convert a textual number description into a number object
> >
> > 2. convert a string representation of a number into a number object
> >
> > 3. encode a char sequence in a single number (reminds me faintly of
> > Goedel numbers)
> >
> > I'd say 1 and 3 can be matched to the OP's question, while 2 clearly
> > cannot with 1 having the highest likelyhood to match the actual
> > requirements.
> >
> > Jordon, what is it that you are looking for?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ see what I mean?
robert
--
use.inject do |as, often| as.you_can - without end