fn format_r_double_cut(x: f64) -> String
Format a double for cut() labels — avoid trailing zeros but keep precision.