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.

Files for fair-numbers, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size fair_numbers-1.1-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size fair_numbers-1.1.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

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