pub fn format_float(number: f64) -> String
Format a float the way JSON does: whole numbers keep no fraction.