sigfig
This is the sigfig Python package used for rounding numbers (with expected results).
>>> round(0.25, 1)
0.2
>>> from sigfig import round
>>> round(0.25, decimals=1)
0.3
>>> round(3.14159, sigfigs=2)
3.1
>>> round(3.14159, uncertainty=0.003639)
'3.142 ± 0.004'
>>> round('3.141592653589793', '0.00000002567', format='Drake')
'3.141 592 654(26)'
Key Features:
round numbers by significant figures/digits
round numbers by decimal places
round numbers by uncertainty/error
format numbers in a variety of common styles & notations
In-depth documentation can be found here:
Useful links:
Please direct any comments/suggestions/feedback/bugs to the issues page or submit a pull request
Thanks for downloading :)
Metadata
Release files for sigfig 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sigfig-1.4.0.tar.gz | 15.1 kB | Without provenance | Details for sigfig-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sigfig-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for sigfig-1.4.0-py3-none-any.whl |
Total release size: 25.9 kB
Release files / sigfig-1.4.0.tar.gz
| Download URL | sigfig-1.4.0.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea818f83bffa2ee4d1dce7d4afcfddc03a9214b8aa952be4ad47b4996eba8e70
|
|
BLAKE2b-256 checksum How to use checksums |
a0c67e95274893ed7d3feebcac579118adf261cc8131c229894728a8a836f7cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / sigfig-1.4.0-py3-none-any.whl
| Download URL | sigfig-1.4.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e83b34779a66b492067a2fff63532c810dc5e68184ae8d98b666fad4397d2823
|
|
BLAKE2b-256 checksum How to use checksums |
c093fbe36f913998a5cca35faa4745a14da772d447b232e45537890aa239c9f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Security for sigfig 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.