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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file num2word-1.0.1.tar.gz.

File metadata

  • Download URL: num2word-1.0.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.5.2

File hashes

Hashes for num2word-1.0.1.tar.gz
Algorithm Hash digest
SHA256 251988feabd38a287583a65a687eaac9aae1ffe56a761f00bf08db6892692b93
MD5 413fbe204514ae0fce9c8ff6c2541363
BLAKE2b-256 9650007ace159a560a446c64f7d9fafb7a2a1bde25e620449282966f5c070272

See more details on using hashes here.

File details

Details for the file num2word-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: num2word-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 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.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.5.2

File hashes

Hashes for num2word-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ff4c5add7039766827d35138c79a1f87e6a2f82938f478ddaf476e18785e0fa
MD5 1993c38e9d3f63dd171ed6fee904f162
BLAKE2b-256 9335ed9a4f6c1953631fad797d5219c55449800b46835d21e5cc53390e3d50d5

See more details on using hashes here.

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