Skip to main content

format_length

Function format_length 

Source
pub fn format_length(original_length: u64) -> String
Expand description

Format a base count into a human-readable string.

Replicates BasicStats.formatLength(long) exactly, including its custom decimal truncation logic (keeps at most 1 non-zero decimal digit).