pub fn format_percent(value: f64, decimals: usize) -> String
Format a float as a percentage with the given decimal places (e.g. "12.3%").
"12.3%"