[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Error while trying to write numbers in words
From: |
Olivier Blanc |
Subject: |
Re: [Help-smalltalk] Error while trying to write numbers in words |
Date: |
Thu, 10 Jul 2008 15:29:02 +0200 |
Hi Paolo,
I couldn't find a way to point out where the bug is appearing.
How do you trace it down ?
Olivier
Le jeudi 10 juillet 2008 à 15:22 +0200, Paolo Bonzini a écrit :
> Canol Gokel wrote:
> > Hello,
> >
> > I am trying to write a method called "inWords" for Number class to write a
> > number in words. For example:
> >
> > 15 inWords
> >
> > should output:
> >
> > fifteen
> >
> > I wrote a code, it works for every 2 digit number except 19, for which it
> > outputs "tennine". I guess there is a logic error in algorithm but I cannot
> > find
> > it.
>
> No, it's my bug. I'm sorry. :-(
>
> Paolo
>
>
> _______________________________________________
> help-smalltalk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-smalltalk