pub(crate) fn format_float(v: f64) -> String
Format a single float as a string, adding a trailing . when the value has no fractional part (matching NumPy’s display convention).
.