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
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to