Skip to main content

No project description provided

Project description

PyPI Downloads

NumWords module converts numbers from their numerical form to their international semantic form. Current input limit is 1066-1.

Usage:

Convert integers

from numwords import NumWords
NumWords.convert(12345)
>>> "Twelve Thousand Three Hundred Fourty Five"

Convert numbers with decimals

NumWords.convert(12345.6789)
>>> "Twelve Thousand Three Hundred Fourty Five Point Six Seven Eight Nine"

NumWords.convert("12345.6789")
>>> "Twelve Thousand Three Hundred Fourty Five Point Six Seven Eight Nine"

NumWords.convert(12345.0)
>>> "Twelve Thousand Three Hundred Fourty Five"

Project details


Download files

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

Source Distribution

numwords-2.0.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

numwords-2.0.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page