A Python library for fractional fixed-point (base 2) arithmetic and binary manipulation with NumPy compatibility.
Develop version:
0.4.10-dev0
Status snapshot: 2026-03-24
Pages source: gh-pages
Develop branch status (highlights):
Packaging modernization (PEP 517/621), improved complex handling, broader bitwise coverage including >64-bit paths, and reshape API alignment with NumPy.
What You Can Do With fxpmath
Represent And Scale Precisely
- Signed/unsigned fixed-point formats
- Arbitrary word and fractional sizes
- Linear scaling with
scaleandbias - Extended precision workflows
Compute Like A Numeric Type
- Arithmetic and bitwise operators
- Configurable rounding/overflow behavior
- NumPy interoperability and function dispatch
- Array operations, reshape, reductions and more
Quick Navigation
Recommended GitHub Pages Setup (2026)
- Keep Pages source explicit (
gh-pagesbranch root) or move to a dedicated GitHub Actions Pages deploy workflow when you need tighter build control. - Use a custom 404 page and keep navigation links shallow so users can recover quickly from broken URLs.
- If using a custom domain, verify the domain ownership and keep HTTPS enabled to reduce takeover risk.