softposit 0.4.0

Implementation of Posit numbers
Documentation
1
2
3
4
5
6
7
8
use softposit::P32;

fn main() {
    let a = P32::from(12.3);
    let b = P32::from(154.);
    let c = a + b;
    println!("c = {0} or c = {0:?}", c);
}