http://qs1969.pair.com?node_id=326799


in reply to Number::Spell

I have some code for this, and I'd like to compare it to yours tonight when I get home. I should also adopt the stringy method to avoid the platform-specific integer issues.

It appears your version doesn't put commas between groups, e.g., "eight thousand, five hundred ninety seven".

You also only spell cardinal numbers. How about ordinal numbers, e.g., "six thousand, twenty-first"?

--
[ e d @ h a l l e y . c c ]