0

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?

Parand
  • 97,666
  • 45
  • 150
  • 182

1 Answers1

5

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
  • 890,778
  • 177
  • 1,125
  • 1,260
  • 1
    I understannd this is an old question and the standards were different. However, as it stands, it is a link-only answer. Are you able to extend it to include the main point of the script? – Jorge Leitao Feb 28 '17 at 07:50