Added python bindings exploiting Python FFI lib. Working with Python 3.9/3.10
>>> import jposit
>>> jposit.from_bits(123, 8, 0)
14.0
>>> jposit.from_double(35.1, 16, 1)
35.09375
Jupyter notebook: https://github.com/urbanij/posit/blob/master/py-posit/notebooks/demo.ipynb
This crate is UNMAINTAINED. You may be interested in looking at https://gitlab.com/burrbull/softposit-rs.
-- @japaric, 2018-12-08
A Rust implementation of the posit number system
- http://web.stanford.edu/class/ee380/Abstracts/170201-slides.pdf
- http://www.johngustafson.net/presentations/Unums2.0.pdf
Clone this repo and run this command:
$ cargo doc --open
Licensed under either of
-
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.