refined-float 0.2.0

Refined float with a subset of functions of std float
Documentation
1
2
3
4
5
6
7
8
9
10
11
use refined_float::{Float32, Float64};

#[test]
fn test_sin_f32() {
    assert_eq!(Float32(1.0), Float32(std::f32::consts::FRAC_PI_2).sin());
}

#[test]
fn test_sin_f64() {
    assert_eq!(Float64(1.0), Float64(std::f64::consts::FRAC_PI_2).sin());
}