formatReadableDecimalSize()

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

Arguments & returns

formatReadableDecimalSize(bytes)

Scalar
Overload link bytes Returns
#01 BIGINT VARCHAR

Example

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

Engine example · Run to view results.

Catalog examples

SELECT
  format_bytes(1000 * 16);