pub fn encode_f64(n: f64, out: &mut String)
Write a canonical-JSON f64 following the Ratify integer-valued rule: whole-number f64s emit as shortest decimal integer; others as-is.