Skip to main content

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


Download files

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

Source Distribution

IntegerInWordsLister-1.1.1.tar.gz (2.6 kB view hashes)

Uploaded Source

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