Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Converting words to numbers with HOP::Parserby Ovid (Cardinal) |
on Nov 06, 2005 at 02:46 UTC ( [id://506067]=note: print w/replies, xml ) | Need Help?? |
I've been thinking about this and wondering about the grammar. It should be easy to extend, but is "one hundred and ten dozen" allowable? If so, it should equal "one hundren and six score", but both seem a bit odd. If you want a real challenge, try to add fractions. Should "three and nine-halves" be allowed? What about "one half million and thirteen hundred"? Mixing real numbers should probably be allowed, though. Allowing "3.5 million" seems sensible. Cheers, New address of my CGI Course.
In Section
Cool Uses for Perl
|
|