format_bytes()

Converts integer to a human-readable representation using units based on powers of 2 (KiB, MiB, GiB, etc.).

Arguments & returns

format_bytes(integer)

Scalar
Overload link integer Returns
#01 BIGINT VARCHAR

Example

format_bytes example
SQL
Haybarn WASM 1.5.5-rc3 · In your browser

Engine example · Run to view results.