Skip to main content

fmt_pct

Function fmt_pct 

Source
pub fn fmt_pct(n: f64) -> String
Expand description

Format a ratio as percentage: 0.2567 -> "25.7%".