Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
.. image:: https://img.shields.io/pypi/v/sigfig.svg :target: https://pypi.org/project/sigfig/ :alt: Version .. image:: https://readthedocs.org/projects/sigfig/badge/?version=latest :target: http://sigfig.readthedocs.io/ :alt: Documentation .. image:: https://img.shields.io/pypi/pyversions/sigfig.svg :target: https://pypi.python.org/pypi/sigfig/ :alt: Python Versions .. image:: https://raw.githubusercontent.com/drakegroup/sigfig/refs/heads/master/test/coverage.svg :target: https://github.com/drakegroup/sigfig/actions/workflows/smoke_test.yaml :alt: Coverage Status .. image:: https://img.shields.io/pypi/dd/sigfig :target: https://pypistats.org/packages/sigfig :alt: Download Stats
This is the sigfig Python package used for rounding numbers (with expected results).
.. code:: python
>>> 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:
In-depth documentation can be found here:
Installation <https://sigfig.readthedocs.io/en/latest/install.html>
_Usage Guide <https://sigfig.readthedocs.io/en/latest/usage.html>
_API Documentation <https://sigfig.readthedocs.io/en/latest/api.html>
_Project Development & Roadmap <https://sigfig.readthedocs.io/en/latest/roadmap.html>
_Useful links:
.. |pypi| image:: https://raw.githubusercontent.com/drakegroup/sigfig/refs/heads/master/doc/pypi-logo.svg :target: https://pypi.org/project/sigfig :height: 1em .. |github| image:: https://raw.githubusercontent.com/FortAwesome/Font-Awesome/refs/heads/master/svgs/brands/github.svg :target: https://github.com/drakegroup/sigfig :height: 1em
Python Package Index entry <https://pypi.org/project/sigfig>
_Source Code <https://github.com/drakegroup/sigfig>
_Please direct any comments/suggestions/feedback/bugs to the issues page <https://github.com/drakegroup/sigfig/issues>
_ or submit a pull request <https://sigfig.readthedocs.io/en/latest/roadmap.html#contribution-guide>
_
Thanks for downloading :)
FAQs
Python library for rounding numbers (with expected results)
We found that sigfig demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.