tags:

views:

417

answers:

2

I'm looking for a library, service, or code suggestions to turn spelled out numbers and amounts (eg. "thirty five dollars and fifteen cents", "one point five") into numerics ($35.15, 1.5) . Suggestions?

+2  A: 

I wrote some code to do this for integers a while ago: http://github.com/ghewgill/text2num

Feel free to fork and hack.

Greg Hewgill
A: 

Almost a duplicate.

http://stackoverflow.com/questions/309884/code-golf-number-to-words

Ben Alpert
I'm looking for the reverse of what golf number to words does.
Parand