Number parser

This free API converts numbers embedded in short text into floating numbers.
Usage: http://dirknachbar.com/numparse/api.php?s=[string]
Example: http://dirknachbar.com/numparse/api.php?s=this is 1.3bn of returns 1300000000 in JSON. It interprets the letters %KMBT as multipliers for hundredth, kilo, million, billion, trillion.
It doesn't understand scientific elements (10e+5) yet.

Update

I have a new version, which filters multiple numbers from text. It still recognises multipliers.
Usage: http://dirknachbar.com/numparse/api2.php?s=[string]
Example: http://dirknachbar.com/numparse/api2.php?s=2 plus 2 is 4
Back to homepage © 2013 Dirk Nachbar