Skip to content

Duckle29/EEValue

Repository files navigation

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