pub fn python_float_repr(x: f64) -> String
Format an f64 exactly like CPython’s repr(float).
repr(float)