Skip to main content

Converts Numbers (Integers and Floats) to Greek Words.

Project description

Converts Numbers to Greek words.

Installation

  • With pip:

    • pip install numtogreek

  • Running setup:

    • wget -c https://pypi.python.org/packages/source/n/numtogreek/numtogreek-0.8.0b2.tar.gz

    • tar zxfv numtogreek-x.y.z.tar.gz cd numtogreek-x.y.z.tar.gz

    • python3 setup.py install as administrator, or sudo python3 setup.py install

Restrictions:

  • Float numbers, only with to two decimal digits. More than two digits, will be truncated.

  • Float numbers max = 99,999,999,999,999.98

  • Integer numbers max = 999,999,999,999,999,999,999,999

Usage

From Script

from numtogreek import n2g

for i in range(20):
    n2g(i)

n2g(1234.09)

n2g(99999999.99)

n2g(9.00)

From Python Console

>>> from numtogreek import n2g
>>> n2g(848922.01)
'Οκτακόσιες Σαράντα Οκτώ Χιλιάδες Εννιακόσια Είκοσι Δύο και Ένα'
>>> n2g(848922.01, True)
'Οκτακόσιες Σαράντα Οκτώ Χιλιάδες Εννιακόσια Είκοσι Δύο Ευρώ  και Ένα Λεπτό'
>>> n2g(848922.01, True, 'lower')
'οκτακόσιες σαράντα οκτώ χιλιάδες εννιακόσια είκοσι δύο ευρώ  και ένα λεπτό'
>>> n2g(848922.01, True, 'upper')
'ΟΚΤΑΚΌΣΙΕΣ ΣΑΡΆΝΤΑ ΟΚΤΏ ΧΙΛΙΆΔΕΣ ΕΝΝΙΑΚΌΣΙΑ ΕΊΚΟΣΙ ΔΎΟ ΕΥΡΏ  ΚΑΙ ΈΝΑ ΛΕΠΤΌ'
>>>

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

numtogreek-1.0.3.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

numtogreek-1.0.3-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file numtogreek-1.0.3.tar.gz.

File metadata

  • Download URL: numtogreek-1.0.3.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.8

File hashes

Hashes for numtogreek-1.0.3.tar.gz
Algorithm Hash digest
SHA256 2731d09cc4abd000d2b0eca70dd6ed7d43ea9dfe3fdf806cf79bea3ba72747ed
MD5 98d0b6553c72dfb8ef87db585ec99a0c
BLAKE2b-256 afe4cef4b95400e47e40a7c83975c81fd9a7bbb13f15b957c23cb52c6989c0f1

See more details on using hashes here.

File details

Details for the file numtogreek-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: numtogreek-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.8

File hashes

Hashes for numtogreek-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5c2def54154842eaf36ae33457280708623a4e5d77857fcc93f3ce8669fa8130
MD5 e3299b59296fe819b0d609ad171bdbda
BLAKE2b-256 21a235d58f666ab8395f8511d79933a7d3d072c411006e6dd708f0471deb20f7

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