formatReadableSize()

Converts bytes to a human-readable presentation (e.g., 16000 -> 15.6 KiB)

Reference: DuckDB 1.3.2

Alias of format_bytes()

Arguments & returns

formatReadableSize(bytes)

Scalar
Overload link bytes Returns
#01 BIGINT VARCHAR

Example

formatReadableSize example
SQL
Haybarn WASM 2.0.0-rc12 · In your browser

Engine example · Run to view results.

Catalog examples

SELECT
  format_bytes(1000 * 16);