qformat
Project description
qformat: Quantitative Formatter
qformat is a number formatter that use numerical parameters (rather than magic string) to control the number formatting.
API
qformat(number: float, width: Optional[int]=None, precision: Optional[int]=None) -> str
Usage Example
from qformat import qformat
s = qformat(2., width=4, precision=1)
print(s) # Output " 2.0"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qformat-0.1.0.tar.gz
(1.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qformat-0.1.0.tar.gz.
File metadata
- Download URL: qformat-0.1.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd02228f1bd4a7efd582cfda435ea4c338854af31fe64aaf200845db758d8ef6
|
|
| MD5 |
d8aa4bc99a1b11ee527776d8cdf12221
|
|
| BLAKE2b-256 |
fdac0c679f385c24d41f6be223e0c27fa882b0c000e8824fbf5a9a327b336f2f
|
File details
Details for the file qformat-0.1.0-py3-none-any.whl.
File metadata
- Download URL: qformat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
364f2e36342b4d32751b52af12d5cc4495a4c303e296e6b29723268af3499f6d
|
|
| MD5 |
b40b2fb44c6f946a7e92c278bdf09edb
|
|
| BLAKE2b-256 |
b2c1beb7fcb9449c329a5b36659e58eeb09458deae54f00a57ee29a3385eef07
|