Skip to main content

Convert numbers to words in Tamil, and English with Indian grouping and international grouping

Project description

🧮 numbers2words Convert numbers into words in:

Tamil

🇮🇳 Indian English format (e.g., lakh, crore)

International English format (e.g., million, billion)

Tamil Format — num2wordsTA Uses Tamil number system (e.g., கோடி, இலட்சம்)

Supports up to 18 digits before the decimal

Decimal part (if present) is stripped to 2 digits

✅ Example

from numbers2words.numbers2words import num2wordsTA

print(num2wordsTA(12345678))

('ஒரு கோடியே இருபத்து மூன்று இலட்சத்து நாற்பத்து ஐந்து ஆயிரத்து அறுநூற்று எழுபத்து எட்டு', '')

print(num2wordsTA(1234567.80))

('பன்னிரண்டு இலட்சத்து முப்பத்து நான்கு ஆயிரத்து ஐநூற்று அறுபத்து ஏழு', 'எண்பது')

print(num2wordsTA("12345678")) print(num2wordsTA("1234567.80")) 🇮🇳 Indian English Format — num2wordsIND Uses Indian number system (e.g., lakh, crore)

Supports up to 17 digits before the decimal

Decimal part is stripped to 2 digits

✅ Example

from numbers2words.numbers2words import num2wordsIND

print(num2wordsIND("12345678"))

('one crore twenty three lakh forty five thousand six hundred and seventy eight', '')

print(num2wordsIND("1234567.80"))

('twelve lakh thirty four thousand five hundred and sixty seven', 'eighty')

print(num2wordsIND(12345678)) print(num2wordsIND(1234567.80)) 🌍 International Format — num2wordsSI Uses standard international format (e.g., million, billion)

Supports up to 17 digits before the decimal

Decimal part is stripped to 2 digits

✅ Example

from numbers2words.numbers2words import num2wordsSI

print(num2wordsSI(12345678))

('twelve million three hundred and forty five thousand six hundred and seventy eight', '')

print(num2wordsSI(1234567.80))

('one million two hundred and thirty four thousand five hundred and sixty seven', 'eighty')

print(num2wordsSI("12345678")) print(num2wordsSI("1234567.80"))

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

numbers2words-0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

numbers2words-0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file numbers2words-0.1.tar.gz.

File metadata

  • Download URL: numbers2words-0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for numbers2words-0.1.tar.gz
Algorithm Hash digest
SHA256 086be138f31cc5d8eda17ebeeb776635e4783c5f800cd8697e827d97be179508
MD5 4e1d759e2ab1d1cbf1caff537d945ad9
BLAKE2b-256 5b25b6a85603ddcaf1bbeb67642387c1696aac35a46c2bbe5a8a022b0c79d8ab

See more details on using hashes here.

File details

Details for the file numbers2words-0.1-py3-none-any.whl.

File metadata

  • Download URL: numbers2words-0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for numbers2words-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39377dcbc6bb4329fb7494884cd20eeab3daae290839cefa4cf9bf4695711ff2
MD5 6ed478cda1ea0d68cb8e5d3ebf61eaab
BLAKE2b-256 0f1caeb95a735ae1776fcb55440aeda6efb61ca251b32b1041b9a421025f2db2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page