Skip to main content

sigfig

Version Documentation Python Versions Coverage Status Download Stats

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

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)

Source distribution for sigfig 1.4.0
File Size Uploaded
sigfig-1.4.0.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sigfig 1.4.0
File Interpreter ABI Platform
sigfig-1.4.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.19

2 release files

1.3.17

2 release files

1.3.16

2 release files

1.3.15

2 release files

1.3.14

2 release files

1.3.13

2 release files

1.3.12

2 release files

1.3.11

2 release files

1.3.10

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.10

1 release file

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page