My personal Python shared package with lots of weird stuff.
Project description
LegLib
Leglib is just a bunch of utility modules that I wrote and like to use. One very handy one is a rounding function that rounds to significant digits: leglib.fmt.sigdig
.
Source: https://github.com/joelegner/leglib
Installation
$ pipenv install leglib
Using
>>> from leglib.fmt import sigdig
>>> sigdig(3.843718473821748732184732)
'3.84'
>>> sigdig(3.843718473821748732184732, 5)
'3.84372'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
leglib-0.0.4.tar.gz
(59.2 kB
view hashes)
Built Distribution
leglib-0.0.4-py3-none-any.whl
(81.0 kB
view hashes)