A package to convert very large numbers into human readable text.
Project description
big-num-format
big-num-format is a package which converts very large numbers into human readable text.
Installation
Simply type the following in a command line to install the package:
pip install big-num-format
Usage
Use the format_num() function to format numbers.
e.g.
from big_num_format import *
format_num(123456789.55)
# '123 million, 456 thousand and 789.55'
format_num(1e50/3, shorten=True, precision=5, decimal_precision=10)
# '33QDe 333qDe 333TDe 333DDe 333.3359375UDe'
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
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file big_num_format-0.4-py3-none-any.whl
.
File metadata
- Download URL: big_num_format-0.4-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31e60ab0fa70e37389a2af57b45590898653660b22906c07866428abd47c306b |
|
MD5 | d524fdddd36a36ea416cc7d723416a22 |
|
BLAKE2b-256 | 3d729c5b54d9ba8f87c0c5aaf6e52be66ba7b4322f448b1c905ca0d6f11c8e5a |