formatReadableSize()

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

Reference: DuckDB 2.0.0

Alias of format_bytes()

Arguments & returns

formatReadableSize(integer)

Scalar
Overload link integer Returns
#01 BIGINT VARCHAR

Example

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

Engine example · Run to view results.