Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Number::Spell

by halley (Prior)
on Feb 05, 2004 at 16:51 UTC ( #326799=note: print w/replies, xml ) Need Help??


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 ]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://326799]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2021-12-01 00:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?