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