sigfig

This is the sigfig Python package used for rounding numbers (with expected results)

https://github.com/drakegroup/sigfig

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 4 committers (25.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.8%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

This is the sigfig Python package used for rounding numbers (with expected results)

Basic Info
  • Host: GitHub
  • Owner: drakegroup
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 348 KB
Statistics
  • Stars: 24
  • Watchers: 4
  • Forks: 7
  • Open Issues: 8
  • Releases: 0
Created over 6 years ago · Last pushed 12 months ago
Metadata Files
Readme License Citation

README.rst

sigfig
=======

.. 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:

* 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
* read in numbers of any type

In-depth documentation can be found here:

* `Installation `_
* `Usage Guide `_
* `API Documentation `_
* `Project Development & Roadmap `_

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

*  |pypi| `Python Package Index entry `_ 
*  |github| `Source Code `_

Please direct any comments/suggestions/feedback/bugs to `the issues page `_ or `submit a pull request `_

Thanks for downloading :)

Owner

  • Name: drakegroup
  • Login: drakegroup
  • Kind: organization

Citation (CITATION.cff)

cff-version: 1.2.0
title: sigfig
type: software
authors:
- given-names: Michael
  family-names: Busuttil
  email: mike@busuttil.ca
- given-names: Travis
  family-names: Valdez
  email: valdezt@gmail.com
repository-code: https://github.com/drakegroup/sigfig/
url: https://sigfig.readthedocs.io/
abstract: sigfig is a Python package used for rounding numbers (with expected results).
license: MIT
version: 1.3.19
date-released: '2025-03-10'

GitHub Events

Total
  • Issues event: 20
  • Watch event: 5
  • Delete event: 13
  • Issue comment event: 23
  • Push event: 69
  • Pull request review comment event: 2
  • Pull request review event: 3
  • Pull request event: 51
  • Fork event: 2
  • Create event: 12
Last Year
  • Issues event: 20
  • Watch event: 5
  • Delete event: 13
  • Issue comment event: 23
  • Push event: 69
  • Pull request review comment event: 2
  • Pull request review event: 3
  • Pull request event: 51
  • Fork event: 2
  • Create event: 12

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 24
  • Total Committers: 4
  • Avg Commits per committer: 6.0
  • Development Distribution Score (DDS): 0.208
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
MikeBusuttil 3****l 19
Mike Busuttil m****l@g****m 3
Stuart s****e@p****m 1
Tim Wolf t****f@m****e 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 20
  • Total pull requests: 8
  • Average time to close issues: 16 days
  • Average time to close pull requests: 1 day
  • Total issue authors: 15
  • Total pull request authors: 6
  • Average comments per issue: 1.45
  • Average comments per pull request: 0.5
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 2
Past Year
  • Issues: 5
  • Pull requests: 3
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 2 days
  • Issue authors: 4
  • Pull request authors: 2
  • Average comments per issue: 1.2
  • Average comments per pull request: 0.33
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 2
Top Authors
Issue Authors
  • MikeBusuttil (8)
  • firasm (3)
  • jgehrcke (2)
  • tadamcz (2)
  • kiyo-masui (1)
  • mjbaldwin (1)
  • jslavin (1)
  • sb362 (1)
  • JustTheCoolest (1)
  • SCHPRS (1)
  • mpciq (1)
  • ahmadtourei (1)
  • zkurtz (1)
  • andreabz (1)
  • Robbie-Palmer (1)
Pull Request Authors
  • MikeBusuttil (20)
  • dependabot[bot] (6)
  • cvm-a (2)
  • WolfXeHD (1)
  • firasm (1)
  • sb362 (1)
Top Labels
Issue Labels
enhancement (2) bug (1)
Pull Request Labels
dependencies (6) python (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 73,328 last-month
  • Total docker downloads: 6,946
  • Total dependent packages: 18
  • Total dependent repositories: 43
  • Total versions: 33
  • Total maintainers: 1
pypi.org: sigfig

Python library for rounding numbers (with expected results)

  • Versions: 33
  • Dependent Packages: 18
  • Dependent Repositories: 43
  • Downloads: 73,328 Last month
  • Docker Downloads: 6,946
Rankings
Dependent packages count: 0.8%
Downloads: 1.2%
Average: 1.7%
Dependent repos count: 2.2%
Docker downloads count: 2.6%
Maintainers (1)
Last synced: 6 months ago

Dependencies

setup.py pypi
  • SortedContainers *