Skip to main content

Formating long numbers

Project description

Библиотека для форматирования чисел до 999 999 999 999 миллиардов в понятный вид с текстовым обозначением разрядов числа или без него.

Библиотека состоит из одной функции nicer(num, description_number=False). num – целое число. description_number – логическое значение, по умолчанию False. Отвечает за вывод текстового описания разрядов числа.

Например:

print(nicer(125000))
>>> 125 000

print(nicer(125000, description_number=True))
>>> 125 тыс. 000

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

fair_numbers-1.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

fair_numbers-1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file fair_numbers-1.1.tar.gz.

File metadata

  • Download URL: fair_numbers-1.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for fair_numbers-1.1.tar.gz
Algorithm Hash digest
SHA256 c1c950cb3fefa467bb93245446298a7e7214a9837bf2c1b89536c545406cf46c
MD5 3969938f52aed9edb714dfb663041ae9
BLAKE2b-256 9db405ca15fbd96863014c554cfa46e93a52893746b63ca285f1eccbb83ebf13

See more details on using hashes here.

File details

Details for the file fair_numbers-1.1-py3-none-any.whl.

File metadata

  • Download URL: fair_numbers-1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for fair_numbers-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 363e69a750fd6ed6ea9b254483857e6c1bb5de6cf209a470608f77018da02859
MD5 0e1696982dab90041fc5e1b2df1e71cc
BLAKE2b-256 d559e6228ac9bd8c6df2025872716eb5b9d68a6860e7d7f3b4d740221253ad44

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