Skip to main content

Utility for fixed point to floating point conversion

Project description

fixed2float

Simple utility for fixed point to real number conversions, using the Q notation*.

Usage

  • as a dependency of your Rust library
[dependencies]
fixed2float = { git = "https://github.com/urbanij/fixed2float" }

or

cargo add fixed2float

which will automatically fetch the most recent version from the registry.

  • as a dependency of your Python library
pip install fixed2float

Examples

See example.py or example/basic.rs

Screencast

asciicast

Similar projects


*: sign is omitted here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fixed2float-0.1.1.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distributions

fixed2float-0.1.1-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl (175.4 kB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ x86-64

fixed2float-0.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (175.2 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

fixed2float-0.1.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (175.2 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

fixed2float-0.1.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (175.2 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

fixed2float-0.1.1-cp37-none-win_amd64.whl (108.5 kB view hashes)

Uploaded CPython 3.7 Windows x86-64

fixed2float-0.1.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (175.3 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

fixed2float-0.1.1-cp37-cp37m-macosx_10_7_x86_64.whl (162.2 kB view hashes)

Uploaded CPython 3.7m macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page