A package that easily lets you find nearest E-series values and printing values with Si prefixes.
Project description
EEValues
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eevalue-2.0.1.tar.gz
(6.2 kB
view hashes)