Skip to main content

format_thousands

Function format_thousands 

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

Format a number with thousands separators and (when fractional) two decimal places. Use for values where the full digits matter (currency totals, audit counts) — for compact display use humanize_number.