No project description provided
Project description
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
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 Distribution
numwords-2.0.0.tar.gz
(3.9 kB
view details)
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 numwords-2.0.0.tar.gz.
File metadata
- Download URL: numwords-2.0.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ae5ea6a8dd61be6a94ac5a13399b59de14efe1a662b258806b7cb6114ff9704
|
|
| MD5 |
50bafa309afb9b1f54dae2ffa2729bbc
|
|
| BLAKE2b-256 |
71188f58f80a0c2b3c82bcac6e03752a08c4c196b69265278e35203b2d55bd61
|
File details
Details for the file numwords-2.0.0-py3-none-any.whl.
File metadata
- Download URL: numwords-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7295d548581bf9864508e424a13a9b9ea5b1a403e69726e1aefe694db18061a4
|
|
| MD5 |
e511630c8a0e0149c0047bd92762396c
|
|
| BLAKE2b-256 |
ba3d49b720137b4a40ab6175810d925783ad72ca4cb7d92a376ee3a325c1ad24
|