Skip to content
/ sigfig Public

A python module aimed to aid the user with visual display of scientific numbers, i.e. significant figures, rounding, spacing, etc.

Notifications You must be signed in to change notification settings

valdezt/sigfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sigfig

Version Documentation Python Versions Coverage Status

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

In-depth documentation can be found here:

Useful links:

Please direct any comments/suggestions/feedback/bugs to mike.busuttil@gmail.com and travis.r.valdez@gmail.com

Thanks for downloading :)

About

A python module aimed to aid the user with visual display of scientific numbers, i.e. significant figures, rounding, spacing, etc.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages