This module returns numbers to a list of words
Project description
This module returns numbers to a list of words
Dependencies
To use this module you need to install humanize and python
Install
pip install IntegerInWordsLister
Usage
from IntegerInWordsLister.InWordsLister import NumericLister
inwords_lister = NumericLister(222)
print(inwords_lister.calculate())
numbers = [120000000000, 9000870000, 245085002120, 23]
for num in numbers:
inwords_lister = NumericLister(num)
print(inwords_lister.calculate())
Output
['200', 'and', '20', 'and', '2'] ['100', 'and', '20', 'milliard'] ['9', 'milliard', 'and', '800', 'and', '70', 'thousand'] ['200', 'and', '40', 'and', '5', 'milliard', 'and', '80', 'and', '5', 'million', 'and', '2', 'thousand', 'and', '100', 'and', '20'] ['20', 'and', '3']
تبدیل اعداد به حروف
این ماژول اعداد را به لیستی از کلمات برمی گرداند
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
File details
Details for the file IntegerInWordsLister-1.1.1.tar.gz.
File metadata
- Download URL: IntegerInWordsLister-1.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b796270d8209a0cefdb40b3263ab54b40bc56a6243238c3825a6b055ff2ab552
|
|
| MD5 |
86d0c3697dab134216a8d0fdb92e328f
|
|
| BLAKE2b-256 |
8680c574de699ba532901e7aec9c972530cfd470bb03dbce4aa9a71a8316bb82
|