pub fn bytes(n: u64) -> String
17 B, 512 kB, 42.0 MB, 1.2 GB: decimal multiples with SI prefix symbols (lower-case k for kilo; BIPM SI Brochure, 9th ed., Table 7), one decimal below 100.
17 B
512 kB
42.0 MB
1.2 GB