pub fn float(x: f64, out: &mut impl Sink)
Python’s repr of a double, as json.dumps writes a float.
repr
json.dumps