Metadata-Version: 2.1
Name: fixed2float
Version: 0.1.0
Summary: Utility for fixed point to floating point conversion
Home-page: https://github.com/urbanij/fixed2float
Keywords: fixed,float,q-format
Author: Francesco Urbani
Author-email: francescourbanidue@gmail.com
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Project-URL: Repository, https://github.com/urbanij/fixed2float
Description-Content-Type: text/markdown

# fixed2float

Simple utility for fixed point to real number conversions, using [the Q notation](https://en.wikipedia.org/wiki/Fixed-point_arithmetic#Notations)*.

### Usage

- as a dependency of your Rust library

```toml
[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

```sh
pip install fixed2float
```


### Examples

See `example.py` or `example/basic.rs`


### Similar projects

- javascripts' [fixed2float](https://www.npmjs.com/package/fixed2float)


---

\*: sign is discarded here

