text module
text::format_bytes
Format a byte count as a human-readable string using binary units (KiB, MiB, GiB).
Syntax
RQL
Parameters
| Name | Type | Description |
|---|---|---|
bytes | Integer | The byte count to format. |
Return Value
Returns a Utf8 representing the byte count in human-readable binary units (KiB, MiB, GiB).
Examples
$ Format bytes (binary)
