Skip to main content

Convert any number to word

Project description

Num2Word

This module convert any number/digit to word For e.g. if you pass a number '98498' then, it will return 'Ninety Eight Thousand Four Hundred Ninety Eight'

Installation

Run the following command to install: pip install num2word

Usage

# Import word from num2word
 from num2word import word

 # Generate 'Nine Thousand eighty four'
 word('9284') or word(9284)

 #other examples
 <!-- you can use any bigger number -->
 a = 33221884729877832
 print(word(a)) /*It will print the output*/
 b = '99320489432099000982409203'
 b = word(b)
 <print(b)>/* will print out the the expected output */

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

num2word-1.0.1.tar.gz (9.3 kB view hashes)

Uploaded Source

Built Distribution

num2word-1.0.1-py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 3

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