A package that easily lets you find nearest E-series values and printing values with Si prefixes.


License
BSD-3-Clause
Install
pip install eevalue==2.0.1

Documentation

EEValues

Test and package A simple class for dealing with engieering values

Will print with Si prefix, and has an easy method to get the closest E-series value.

>>> from eevalue import EEValue as EEV
>>> R = EEV(18.91)
>>> str(R.E(48, "ceil"))
19.60
>>> str(EEV(17950.10).E(192,"floor"))
17.80 k
>>> str(EEV('2u2') * 2)
4.40 µ
>>> str(EEV('2K1234', precision=4) * 2)
4.2468 k