Format bytes as human-readable text.
Number of bytes.
True to use metric (SI) units, aka powers of 1000. False to use binary (IEC), aka powers of 1024.
Number of decimal places to display.
Formatted string.
Taken from https://stackoverflow.com/questions/10420352/converting-file-size-in-bytes-to-human-readable-string/10420404
Generated using TypeDoc
Format bytes as human-readable text.