$npx skillfedfor your agent

fxpmath

A python library for fractional fixed-point (base 2) arithmetic and binary manipulation with Numpy compatibility.

Worth itPyPI Scientific/EngineeringReleased Mar 2026194.2K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — fxpmath-0.4.10-py3-none-any.whl
v0.4.10 · released 2026-03-24 · Python >=3.7 · 1 runtime deps: numpy

Yes. Fxpmath is actively maintained, has no known vulnerabilities, installs with minimal friction (numpy only), and fills a specific niche for fixed-point algorithm development and FPGA prototyping. The MIT license and stable API make it suitable for both research and production use. Install if you need to simulate or verify fixed-point behavior before hardware implementation.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >= 3.7; numpy must be installed.
  • Low friction: pure Python wheel with only numpy as a runtime dependency.
  • Active maintenance with recent releases; last commit 2026-04-04 and 206 repository stars indicate ongoing development.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal restrictions.

last release 2026-03-24 (143 days) · last repo commit 2026-04-04 · 206 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 194,177 downloads/mo, #9,843 on PyPI

Verify before relying

pip install fxpmath

from fxpmath import Fxp
import numpy as np

x = Fxp(-7.25, signed=True, n_word=16, n_frac=8)
y = x + 2.5
print(x.bin(frac_dot=True))
  • Performance characteristics for large arrays or complex operations compared to alternatives
  • Numerical accuracy guarantees under various rounding and overflow configurations
  • Active user community size and response time for issues beyond the 206 GitHub stars
Same gist for agents: .md · .json

What it is and what it does

Fxpmath is a Python library for simulating fixed-point arithmetic in software, mimicking hardware behavior on FPGAs and DSP systems. It represents numbers with configurable word length and fractional bit positions, supporting signed and unsigned formats, and works seamlessly with numpy arrays and operations.

The library handles the full lifecycle of fixed-point values: creation from multiple input types (int, float, complex, strings in binary/hex/decimal, numpy arrays), arithmetic and bitwise operations, configurable rounding and overflow behaviors, and output in multiple bases. It tracks status flags and precision loss, making it useful for algorithm prototyping before hardware implementation or for educational exploration of fixed-point behavior.

Use it for

  • Prototype DSP algorithms in Python before deploying to fixed-point hardware or FPGA
  • Simulate fixed-point quantization effects on signal processing pipelines to predict hardware behavior
  • Test arithmetic overflow and underflow handling strategies with configurable saturation and rounding modes
  • Verify bit-width requirements for embedded systems by experimenting with different word and fractional sizes
  • Teach fixed-point representation and binary arithmetic concepts with interactive examples

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Fxpmath is actively maintained, has no known vulnerabilities, installs with minimal friction (numpy only), and fills a specific niche for fixed-point algorithm development and FPGA prototyping. The MIT license and stable API make it suitable for both research and production use. Install if you need to simulate or verify fixed-point behavior before hardware implementation.

Install

fxpmath on PyPI

Before you install

Low friction: pure Python wheel with only numpy as a runtime dependency. Active maintenance with recent releases; last commit 2026-04-04 and 206 repository stars indicate ongoing development.

Requires Python >= 3.7; numpy must be installed.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal restrictions.

Quickstart

pip install fxpmath

from fxpmath import Fxp
import numpy as np

x = Fxp(-7.25, signed=True, n_word=16, n_frac=8)
y = x + 2.5
print(x.bin(frac_dot=True))

Verify before relying

  • Performance characteristics for large arrays or complex operations compared to alternatives
  • Numerical accuracy guarantees under various rounding and overflow configurations
  • Active user community size and response time for issues beyond the 206 GitHub stars

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
numpy
MaintenanceActively maintained 143 days since the last release
Last repo commit
First released
Downloads194,177 / month, #9,843 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: Science/ResearchOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: MathematicsTopic :: Scientific/Engineering :: Physics

Evidence: fxpmath-0.4.10-py3-none-any.whl

Tags

Capabilities
fixed-point arithmeticfractional binary mathDSP signal processingFPGA simulationnumpy fixed-pointarbitrary precision binarybitwise operations
Topics
fpga-simulationdsp-prototypingfixed-point
PyPI keywords
fixed pointfractionalmathpythonfxpmathfxparithmeticFPGADSP

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “fixed-point arithmetic”

  • fxpmathFxpmath provides fixed-point arithmetic with arbitrary word and…
  • cintWraps ctypes integer types to perform arithmetic with C-like overflow…
  • python-flintPython bindings for FLINT and Arb that provide exact integer and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Scientific/Engineering packages

numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
pandas Worth it
PyPI · Scientific/Engineering · released Jul 2026

pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.

BSD-3-Clausecompiled wheel · 3.11+
769.1Mdownloads / mo
scipy Worth it
PyPI · Libraries · released Jun 2026

scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.

BSD-3-Clausecompiled wheel · 3.12+
449.0Mdownloads / mo
scikit-learn Worth it
PyPI · Software Development · released Jun 2026

scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.

Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.

BSD-3-Clausecompiled wheel · 3.11+
235.5Mdownloads / mo
dill Worth it
PyPI · Software Development · released Jan 2026

dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.

BSD-3-Clausepure Python · 3.9+
208.1Mdownloads / mo
multiprocess Worth it
PyPI · Software Development · released Jan 2026

Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.

Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.

BSD-3-Clausepure Python · 3.9+
202.7Mdownloads / mo

See also fixedint · bitarray-hardbyte · ml-dtypes · bitmath · numkong · cint · xpresslibs · numexpr · bitarray