nothingmuch has asked for the wisdom of the Perl Monks concerning the following question:
There are many modules on the CPAN which know how to parse dates that look like "tomorrow", "in one hour", "24/12", etc.
I'm looking for a module that does the same for numbers... "one half", "1/2", "0.5" and "½" should all be parsed into a float, or maybe a bigrat.
I can't find anything of the sort.
Update: I should note that Math::Expr is the next best thing I found, and I'll probably use it given nothing else, because it at least gives me proper support of fractions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing human notations of numbers
by davido (Cardinal) on Jan 16, 2005 at 07:22 UTC | |
by nothingmuch (Priest) on Jan 16, 2005 at 07:40 UTC | |
by davido (Cardinal) on Jan 16, 2005 at 07:41 UTC | |
by nothingmuch (Priest) on Jan 16, 2005 at 07:47 UTC | |
by davido (Cardinal) on Jan 16, 2005 at 07:50 UTC | |
|
Re: Parsing human notations of numbers
by ysth (Canon) on Jan 16, 2005 at 07:48 UTC |