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

Uploaded source

Built Distribution

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

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page