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