pub fn in_r(x: f32, coarse: bool) -> f32