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 <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
* |pypi| `Python Package Index entry <https://pypi.org/project/sigfig>`_
* |github| `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 :)
Raw data
{
"_id": null,
"home_page": null,
"name": "sigfig",
"maintainer": "Michael Busuttil",
"docs_url": null,
"requires_python": "<4.0,>=3.6",
"maintainer_email": "mike.busuttil@gmail.com",
"keywords": "round, rounding, significant figures, significant digits, sigfigs, sigdigs, decimals, uncertainty, uncertainties, numeric, numerical, number, numbers, data, format, style, publication",
"author": "Michael Busuttil",
"author_email": "mike.busuttil@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d1/50/d9c34266f770042f84996e18ba1efade7eb2d081f28ce4713943e30555df/sigfig-1.3.18.tar.gz",
"platform": null,
"description": "\ufeffsigfig\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://raw.githubusercontent.com/drakegroup/sigfig/refs/heads/master/test/coverage.svg\n :target: https://github.com/drakegroup/sigfig/actions/workflows/smoke_test.yaml\n :alt: Coverage Status\n.. image:: https://img.shields.io/pypi/dd/sigfig\n :target: https://pypistats.org/packages/sigfig\n :alt: Download Stats\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.. |pypi| image:: https://raw.githubusercontent.com/drakegroup/sigfig/refs/heads/master/doc/pypi-logo.svg\n :target: https://pypi.org/project/sigfig\n :height: 1em\n.. |github| image:: https://raw.githubusercontent.com/FortAwesome/Font-Awesome/refs/heads/master/svgs/brands/github.svg\n :target: https://github.com/drakegroup/sigfig\n :height: 1em\n\n* |pypi| `Python Package Index entry <https://pypi.org/project/sigfig>`_ \n* |github| `Source Code <https://github.com/drakegroup/sigfig>`_\n\nPlease 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>`_\n\nThanks for downloading :)\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python library for rounding numbers (with expected results)",
"version": "1.3.18",
"project_urls": {
"Documentation": "https://sigfig.readthedocs.io/",
"Homepage": "https://sigfig.readthedocs.io/",
"Issues": "https://github.com/drakegroup/sigfig/issues",
"Repository": "https://github.com/drakegroup/sigfig.git"
},
"split_keywords": [
"round",
" rounding",
" significant figures",
" significant digits",
" sigfigs",
" sigdigs",
" decimals",
" uncertainty",
" uncertainties",
" numeric",
" numerical",
" number",
" numbers",
" data",
" format",
" style",
" publication"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2a68d9dff69716dcd559db21b1effb70c8c58e3a4374db04113a39bf8ea405e7",
"md5": "11edc099bbbc23c06d8bcc725d940428",
"sha256": "cf423c85734b80917ac2f5150d9f5c4e06e77abdece0602f2ea2d2cef45bc0f3"
},
"downloads": -1,
"filename": "sigfig-1.3.18-py3-none-any.whl",
"has_sig": false,
"md5_digest": "11edc099bbbc23c06d8bcc725d940428",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.6",
"size": 10480,
"upload_time": "2024-11-01T04:05:34",
"upload_time_iso_8601": "2024-11-01T04:05:34.267462Z",
"url": "https://files.pythonhosted.org/packages/2a/68/d9dff69716dcd559db21b1effb70c8c58e3a4374db04113a39bf8ea405e7/sigfig-1.3.18-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d150d9c34266f770042f84996e18ba1efade7eb2d081f28ce4713943e30555df",
"md5": "7fceb84cf7bfd3a83d3fed8b77d0ed07",
"sha256": "7c1e4cc10ae61f99a0bb0a96e0a5b1a4907570d5974016cb18d317f92ee36b5c"
},
"downloads": -1,
"filename": "sigfig-1.3.18.tar.gz",
"has_sig": false,
"md5_digest": "7fceb84cf7bfd3a83d3fed8b77d0ed07",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.6",
"size": 11293,
"upload_time": "2024-11-01T04:05:36",
"upload_time_iso_8601": "2024-11-01T04:05:36.204670Z",
"url": "https://files.pythonhosted.org/packages/d1/50/d9c34266f770042f84996e18ba1efade7eb2d081f28ce4713943e30555df/sigfig-1.3.18.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-01 04:05:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "drakegroup",
"github_project": "sigfig",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "sigfig"
}