From: David Alan Black Date: 2000-12-20T22:39:09+09:00 Subject: [ruby-talk:7759] Next amusing problem: talking integers (was Re: Code sample for improvement) On Wed, 20 Dec 2000, Stephen White wrote: > Hopefully this code dissection, rewriting and optimisation becomes a > regular feature. Anyone else want to post the next amusing problem > for us to work on? :) Just wait til the online cookbook is up and running :-) Meanwhile -- well, am I allowed to do the cowardly thing, and pose this as a puzzle, without actually having done it yet? I did do it in Perl, but am curious to see ideas for it in Ruby. Namely...... Input: 123456 Output: "one-hundred twenty-three thousand four-hundred fifty-six" etc. Solutions in other languages welcome too. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav