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
requirements
- python3
running the tests
python tests.py
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
Assumptions
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file number_to_words-0.1.2-py3-none-any.whl.
File metadata
- Download URL: number_to_words-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d61b2564d47ac0d2dda8b0c9dbcb1a0f94146402de33803407a42c46e4e42bfc
|
|
| MD5 |
783c16e3e4f0b8f95690dd56a87671a6
|
|
| BLAKE2b-256 |
1a2c1dc26c273dfebab78a6e01b7272ad16afd75b55dfba0fbad291537087b2e
|