money2number

Convert a single money related term in a sentence in any format to float.


License
Apache-2.0
Install
pip install money2number==0.1

Documentation

This library will convert any money related term in a string to numbers

from money2number import m2n
m2n.m2n.process_money_tags('here is 120 million dollars '))

will return >>> 120000000.0

Limitations

  • Only one money related term in a string can be identified.
  • Examples of inputs:
    2.7 million
    12 Billion
    five hundred and seventy four million