DRAFTThis page is not published. Only visible in development mode.
text module

text::format_bytes

Format a byte count as a human-readable string using binary units (KiB, MiB, GiB).

Syntax

RQL

Parameters

NameTypeDescription
bytesIntegerThe 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)
$ ctrl+enter to run

Related Functions