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