Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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

Project description

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 
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for money2number, version 0.7
Filename, size File type Python version Upload date Hashes
Filename, size money2number-0.7-py3-none-any.whl (2.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size money2number-0.7.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page