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

Python converter of numbers in figures to words

Project description

Given any number up to a vigintillion, this class will return the same number in words


  • python3

running the tests


using custom tests

Import NumbersToWords;
NumbersToWords("45781", add_and=False).words # for when the conjuntion "and" is unnecessary
NumbersToWords("45781", add_and=True).words # for when the conjuntion "and" is necessary

# replace 45781 with custom numbers as desired within the bounds


The class only works with strings. We are not handling

  • negative integers
  • direct integers.

You have to pass the number intended as a string Of course a serializer can be used to validate this in production if it was user input.

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 number-to-words, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size number_to_words-0.1.2-py3-none-any.whl (6.6 kB) File type Wheel Python version py3 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