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 details)
Built Distribution
File details
Details for the file eevalue-2.0.1.tar.gz
.
File metadata
- Download URL: eevalue-2.0.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69d2a754acdae5749f61732105348c217b472ef9a6ec059e728f86077579b2f1 |
|
MD5 | 403d4686da96ee4d4756844f800fa03a |
|
BLAKE2b-256 | d536fcff988e38cae7c4fccf03287d12ed46319d9b13a76a181e11956878be32 |
File details
Details for the file eevalue-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: eevalue-2.0.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d28bab1ad7782583d97713e109423267efe96543b1a81e5c520d10cd3d47b38d |
|
MD5 | d92ff19d98145412939b86874fe93e83 |
|
BLAKE2b-256 | b8f768d0e4fb989d4a84467c03aad9a5c3c19f41d2342f68ef4161f6b1b32978 |