Generic floating point handling in Python
Project description
gfloat: Generic floating-point types in Python
An implementation of generic floating point encode/decode logic, handling various current and proposed floating point types:
- IEEE 754: Binary16, Binary32
- OCP Float8: E5M2, E4M3
- IEEE WG P3109: P{p} for p in 1..7
See https://gfloat.readthedocs.io for documentation.
BUILDING
pip install -e .
cd docs
make html
cd ..
Pushing
rm -rf dist
python3 -m build
echo __token__ | twine upload --repository pypi dist/* --verbose
Notes
All NaNs are the same, with no distinction between signalling or quiet, or between differently encoded NaNs.
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
gfloat-0.0.4.tar.gz
(16.3 kB
view hashes)
Built Distribution
gfloat-0.0.4-py3-none-any.whl
(8.9 kB
view hashes)