pub fn py_float(x: f64, digits: i32) -> String
Same shape as Python round(x, n) followed by repr (.0 for integers).
round(x, n)
repr
.0