Skip to main content

format_percent

Function format_percent 

Source
pub fn format_percent(value: f64, decimals: usize) -> String
Expand description

Format a float as a percentage with the given decimal places (e.g. "12.3%").