Skip to main content

compact_count

Function compact_count 

Source
pub fn compact_count(count: u64) -> String
Expand description

A count short enough to sit beside an icon: 999, 1.2k, 15k, 3.4M. Rounded down, so it never says more than there is.