pip install -U roundmantissa
roundmantissa
Tiny library :baby_chick: that rounds floating point numbers based on the length of their mantissa.
5.0 = 4.0 + 1.0 = (1 + 1/4) * 2**2 = b1.01 * 2**2
round_mantissa(5.0, 0) = b1. * 2**2
round_mantissa(5.0, 1) = b1.0 * 2**2
round_mantissa(5.0, 2) = b1.01 * 2**2
:hatched_chick: :hatched_chick: :hatched_chick:
Metadata
Release files for roundmantissa 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| roundmantissa-0.2.1.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| roundmantissa-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / roundmantissa-0.2.1.tar.gz
| Download URL | roundmantissa-0.2.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92b6bda5ab5f0dac437a0b270f228adfb39971668eff9dd9cb06460cf37af935
|
|
BLAKE2b-256 checksum How to use checksums |
23b9033a3e1d79cef5400cce2a7dab2f1aec2563dee71a1d0ac2dca578109a17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.14
|
Release files / roundmantissa-0.2.1-py3-none-any.whl
| Download URL | roundmantissa-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
646b48a0f9ba29211ed485a794dad8430dad9449a0eaddfd52ebf9d9cb3c18ca
|
|
BLAKE2b-256 checksum How to use checksums |
865c8a79ad38d8521ce0f6955ae2c4db6efcaefd63c15bc8e217a3fc74b34f27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.14
|