Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Converting words to numbers with HOP::Parser

by sauoq (Abbot)
on Nov 06, 2005 at 02:57 UTC ( #506069=note: print w/replies, xml ) Need Help??


in reply to Re^2: Converting words to numbers with HOP::Parser
in thread Converting words to numbers with HOP::Parser

If so, it should equal "one hundren and six score", but both seem a bit odd.

Or just "eleven score."

I would think that, if dozen was used, it would be the highest denomination (and similarly for score.) So "one hundred and ten dozen" should probably be "eighteen dozen and four."

Update: Then again, in deciding on what to accept as input, you should probably be liberal as possible and accept even bizarre things like "one thousand one hundred twenty score eight dozen and four" for 1500.

-sauoq
"My two cents aren't worth a dime.";
  • Comment on Re^3: Converting words to numbers with HOP::Parser

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://506069]
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 2020-11-27 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?