pub fn fixed(x: f64, prec: usize) -> String
f"{x:.{prec}f}", spelling infinities and NaN the way Python does.
f"{x:.{prec}f}"