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://codecov.io/gh/mikebusuttil/sigfig/branch/master/graph/badge.svg
:target: https://codecov.io/gh/mikebusuttil/sigfig/
:alt: Coverage Status
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 <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:
* Python Package Index entry: https://pypi.org/project/sigfig/
* Source Code: https://github.com/drakegroup/sigfig/
Please direct any comments/suggestions/feedback/bugs to mike.busuttil@gmail.com and valdezt@gmail.com
Thanks for downloading :)
Raw data
{
"_id": null,
"home_page": "https://sigfig.readthedocs.io/",
"name": "sigfig",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "round,rounding,significant figures,sigfinicant digits,sigfigs,sigdigs,decimals,uncertainty,uncertainties,numeric,numerical,number,numbers,data,format,style,publication",
"author": "Mike & Travis",
"author_email": "mike.busuttil@gmail.com, valdezt@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/80/27/c224529d24dd1893378558f750f52428bd6d951e5639ef76c2a94eca5f04/sigfig-1.3.3.tar.gz",
"platform": null,
"description": "sigfig\n======\n\n.. image:: https://img.shields.io/pypi/v/sigfig.svg\n :target: https://pypi.org/project/sigfig/\n :alt: Version\n.. image:: https://readthedocs.org/projects/sigfig/badge/?version=latest\n :target: http://sigfig.readthedocs.io/\n :alt: Documentation\n.. image:: https://img.shields.io/pypi/pyversions/sigfig.svg\n :target: https://pypi.python.org/pypi/sigfig/\n :alt: Python Versions\n.. image:: https://codecov.io/gh/mikebusuttil/sigfig/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/mikebusuttil/sigfig/\n :alt: Coverage Status\n\nThis is the **sigfig** Python package used for rounding numbers (with expected results).\n\n.. code:: python\n\n >>> round(0.25, 1)\n 0.2\n >>> from sigfig import round\n >>> round(0.25, decimals=1)\n 0.3\n >>> round(3.14159, sigfigs=2)\n 3.1\n >>> round(3.14159, uncertainty=0.003639)\n '3.142 \u00b1 0.004'\n >>> round('3.141592653589793', '0.00000002567', format='Drake')\n '3.141 592 654(26)'\n\nKey Features:\n\n* round numbers by significant figures/digits\n* round numbers by decimal places\n* round numbers by uncertainty/error\n* format numbers in a variety of common styles & notations\n* read in numbers of any type\n\nIn-depth documentation can be found here:\n\n* `Installation <https://sigfig.readthedocs.io/en/latest/install.html>`_\n* `Usage Guide <https://sigfig.readthedocs.io/en/latest/usage.html>`_\n* `API Documentation <https://sigfig.readthedocs.io/en/latest/api.html>`_\n* `Project Development & Roadmap <https://sigfig.readthedocs.io/en/latest/roadmap.html>`_\n\nUseful links:\n\n* Python Package Index entry: https://pypi.org/project/sigfig/\n* Source Code: https://github.com/drakegroup/sigfig/\n\nPlease direct any comments/suggestions/feedback/bugs to mike.busuttil@gmail.com and valdezt@gmail.com\n\nThanks for downloading :)\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python library for rounding numbers (with expected results)",
"version": "1.3.3",
"project_urls": {
"Homepage": "https://sigfig.readthedocs.io/"
},
"split_keywords": [
"round",
"rounding",
"significant figures",
"sigfinicant digits",
"sigfigs",
"sigdigs",
"decimals",
"uncertainty",
"uncertainties",
"numeric",
"numerical",
"number",
"numbers",
"data",
"format",
"style",
"publication"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f999b109cbb4dd6af42f1706933810e6e54cd1786106508754af775856662304",
"md5": "f5f725f8cd1c0a1d41fa6009bf5c1507",
"sha256": "7df6dfc45d09ee7e43a9418e944fcf06f8654477af263e3f0c2bee4234d6a84e"
},
"downloads": -1,
"filename": "sigfig-1.3.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f5f725f8cd1c0a1d41fa6009bf5c1507",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 9802,
"upload_time": "2023-08-28T14:12:37",
"upload_time_iso_8601": "2023-08-28T14:12:37.037484Z",
"url": "https://files.pythonhosted.org/packages/f9/99/b109cbb4dd6af42f1706933810e6e54cd1786106508754af775856662304/sigfig-1.3.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8027c224529d24dd1893378558f750f52428bd6d951e5639ef76c2a94eca5f04",
"md5": "0911e842fdd58f80a3fdfef87caba9a5",
"sha256": "d6a720029c2fdb0f1413b14ba72f92db9ab95fe816d198fe7f6311d2bbdc5b61"
},
"downloads": -1,
"filename": "sigfig-1.3.3.tar.gz",
"has_sig": false,
"md5_digest": "0911e842fdd58f80a3fdfef87caba9a5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 12146,
"upload_time": "2023-08-28T14:12:40",
"upload_time_iso_8601": "2023-08-28T14:12:40.168287Z",
"url": "https://files.pythonhosted.org/packages/80/27/c224529d24dd1893378558f750f52428bd6d951e5639ef76c2a94eca5f04/sigfig-1.3.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-28 14:12:40",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "sigfig"
}