pub fn format_number(n: f64, format: &str) -> String
Format a number according to printf-style format