text module
text::format_bytes_si
Format a byte count as a human-readable string using SI units (KB, MB, GB).
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 SI units (KB, MB, GB).
Examples
$ Format bytes (SI)
