fn precise_scaling(
        value: i16,
        source_rmin: i32,
        source_rmax: i32,
        target_rmin: i32,
        target_rmax: i32,
    ) -> f32 {
        (((value as i32 - source_rmin) * (target_rmax - target_rmin)) as f32
            / (source_rmax - source_rmin) as f32)
            + target_rmin as f32
    }
// debug purpose atm; f32 precise enough
debug purpose atm; f32 precise enough
debug purpose atm ; f32 precise enough
fn precise_scaling(
        value: i16,
        source_rmin: i32,
        source_rmax: i32,
        target_rmin: i32,
        target_rmax: i32,
    ) -> f32 {
        (((value as i32 - source_rmin) * (target_rmax - target_rmin)) as f32
            / (source_rmax - source_rmin) as f32)
            + target_rmin as f32
    }
fn precise_scaling ( value : i16 , source_rmin : i32 , source_rmax : i32 , target_rmin : i32 , target_rmax : i32 , ) -> f32 { ( ( ( value as i32 - source_rmin ) * ( target_rmax - target_rmin ) ) as f32 / ( source_rmax - source_rmin ) as f32 ) + target_rmin as f32 }
debug purpose atm; f32 precise enough
debug purpose atm ; f32 precise enough
value
i16
source_rmin
i32
source_rmax
i32
target_rmin
i32
target_rmax
i32
value
i16
source_rmin
i32
source_rmax
i32
target_rmin
i32
target_rmax
i32