Skip to main content

Converts Numbers 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.numtogreek import n2g

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

n2g(1234.09)

n2g(99999999.99)

n2g(9.00)

From Python Console

>>> from numtogreek.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 Distributions

numtogreek-0.10.0b0.zip (32.0 kB view details)

Uploaded Source

numtogreek-0.10.0b0.tar.gz (25.5 kB view details)

Uploaded Source

File details

Details for the file numtogreek-0.10.0b0.zip.

File metadata

  • Download URL: numtogreek-0.10.0b0.zip
  • Upload date:
  • Size: 32.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for numtogreek-0.10.0b0.zip
Algorithm Hash digest
SHA256 bf9f16d21479324d66f80f12be7c9df4aa61cb90be914cc367811d5c7e22d6f4
MD5 c8e6979bf77f8c3ca003744ec5bd99d0
BLAKE2b-256 4e962815fea91bde5d917077f6e698630a0d242b39908e94f1405c3a34c85a04

See more details on using hashes here.

File details

Details for the file numtogreek-0.10.0b0.tar.gz.

File metadata

File hashes

Hashes for numtogreek-0.10.0b0.tar.gz
Algorithm Hash digest
SHA256 19a7d8fa9f3d79d5df868bcd6c72c1f2163399a7feb906e8d2a62ef6322a5241
MD5 bf7f0a179078c3f7acd672c9d9ec24c6
BLAKE2b-256 02a7c94e51612b5632f04cda10f8f318d965933f31fbdb734e784970dbc34dc4

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