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