uno 0.1.0

Encode floats in the range [0.0, 1.0] as unsigned integers!
Documentation
1
2
3
4
5
6
7
8
9
use uno::*;

#[test]
fn add() {
    assert_eq!(
        Unorm8::from_float(0.5),
        Unorm8::from_float(0.2) + Unorm8::from_float(0.3)
    );
}