display

open override fun display(): String(source)

Formats the byte count as a human-readable string.

Rules:

  • 0"0 bytes"

  • ≥ 1 MiB → value in MiB with one decimal place

  • < 0.1 KiB → "<0.1 KiB"

  • Otherwise → value in KiB with one decimal place