# round — DuckDB 1.4.4

Rounds x to s decimal places

- Reference: /products/haybarn/functions/releases/duckdb-1.4.4/round/
- JSON: /products/haybarn/functions/api/v1/duckdb-1.4.4/functions/round.json
- Snapshot ID: duckdb-1.4.4
- Engine: duckdb v1.4.4
- Source ID: 6ddac802ff
- Binary SHA-256: 8d05bee013ea13d6b5d75272d7ddb52b3d6d9cdaf30d1a3e8e82d42757905182
- Captured: 2026-09-05T18:37:36.091Z
- Source: https://github.com/duckdb/duckdb/releases/tag/v1.4.4
- Loaded extensions: autocomplete, core_functions, icu, json, parquet, shell

## Interpretation

- Choose a snapshot matching the target engine and build. The default is captured from the published Haybarn WASM package used by the browser playground. Historical native snapshots are also available.
- Availability is an observation in the recorded build and extension profile, not a guarantee of support in every installation or in WASM.
- Types and descriptions are declarations from duckdb_functions(). Binding can specialize result types. Null means not supplied by the catalog; do not invent defaults, optionality, argument mode, or table output columns.
- Raw parameter arrays preserve catalog order for scalar/aggregate/macro functions. Raw table arguments are alphabetical. Use callingConvention for engine-confirmed positional order and named arguments; null modes are unrecorded. Named does not mean optional. Macro defaults and special named variadic behavior are not supplied by duckdb_functions().
- Catalog examples are source material and may require data or extensions. runnableExamples contains separately verified SQL for the pinned WASM package; sample-data adaptations and guide examples are labeled separately.
- Guide annotations and recipes are separate editorial content. The browser runner always uses Haybarn WASM 1.5.5-rc3, independently of the documentation snapshot.
- All URLs beginning with / are relative to the origin hosting this document. Exports require no JavaScript, cookies, API key, or browser engine.

## Overloads

### overload-197b63e23b1ee4df

Kind: scalar. Parameter order: catalog-order.

```text
round(x: BIGINT) → BIGINT
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-197b63e23b1ee4df

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | BIGINT | not recorded |

Declared return type: BIGINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-a52745242179d318

Kind: scalar. Parameter order: catalog-order.

```text
round(x: DECIMAL) → DECIMAL
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-a52745242179d318

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | DECIMAL | not recorded |

Declared return type: DECIMAL. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-40076132fda8ab8a

Kind: scalar. Parameter order: catalog-order.

```text
round(x: DOUBLE) → DOUBLE
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-40076132fda8ab8a

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | DOUBLE | not recorded |

Declared return type: DOUBLE. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-d937de3ffbce8fc0

Kind: scalar. Parameter order: catalog-order.

```text
round(x: FLOAT) → FLOAT
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-d937de3ffbce8fc0

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | FLOAT | not recorded |

Declared return type: FLOAT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-027c3069b6bc288d

Kind: scalar. Parameter order: catalog-order.

```text
round(x: HUGEINT) → HUGEINT
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-027c3069b6bc288d

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | HUGEINT | not recorded |

Declared return type: HUGEINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-0114af8aa51f4524

Kind: scalar. Parameter order: catalog-order.

```text
round(x: INTEGER) → INTEGER
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-0114af8aa51f4524

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | INTEGER | not recorded |

Declared return type: INTEGER. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-c9fadf1a9f037e1c

Kind: scalar. Parameter order: catalog-order.

```text
round(x: SMALLINT) → SMALLINT
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-c9fadf1a9f037e1c

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | SMALLINT | not recorded |

Declared return type: SMALLINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-f44296c4fac44208

Kind: scalar. Parameter order: catalog-order.

```text
round(x: TINYINT) → TINYINT
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-f44296c4fac44208

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TINYINT | not recorded |

Declared return type: TINYINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-b352100c5328fbb7

Kind: scalar. Parameter order: catalog-order.

```text
round(x: BIGINT, precision: INTEGER) → BIGINT
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-b352100c5328fbb7

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | BIGINT | not recorded |
| precision | INTEGER | not recorded |

Declared return type: BIGINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-5e424245462b3105

Kind: scalar. Parameter order: catalog-order.

```text
round(x: DECIMAL, precision: INTEGER) → DECIMAL
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-5e424245462b3105

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | DECIMAL | not recorded |
| precision | INTEGER | not recorded |

Declared return type: DECIMAL. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-c3ad32986ade2927

Kind: scalar. Parameter order: catalog-order.

```text
round(x: DOUBLE, precision: INTEGER) → DOUBLE
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-c3ad32986ade2927

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | DOUBLE | not recorded |
| precision | INTEGER | not recorded |

Declared return type: DOUBLE. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-c732d9f74163832b

Kind: scalar. Parameter order: catalog-order.

```text
round(x: FLOAT, precision: INTEGER) → FLOAT
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-c732d9f74163832b

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | FLOAT | not recorded |
| precision | INTEGER | not recorded |

Declared return type: FLOAT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-88af24542533e28a

Kind: scalar. Parameter order: catalog-order.

```text
round(x: HUGEINT, precision: INTEGER) → HUGEINT
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-88af24542533e28a

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | HUGEINT | not recorded |
| precision | INTEGER | not recorded |

Declared return type: HUGEINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-0395ab159ea2faa8

Kind: scalar. Parameter order: catalog-order.

```text
round(x: INTEGER, precision: INTEGER) → INTEGER
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-0395ab159ea2faa8

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | INTEGER | not recorded |
| precision | INTEGER | not recorded |

Declared return type: INTEGER. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-3bdee56048af4729

Kind: scalar. Parameter order: catalog-order.

```text
round(x: SMALLINT, precision: INTEGER) → SMALLINT
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-3bdee56048af4729

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | SMALLINT | not recorded |
| precision | INTEGER | not recorded |

Declared return type: SMALLINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.

### overload-23d7d97f5e1a0106

Kind: scalar. Parameter order: catalog-order.

```text
round(x: TINYINT, precision: INTEGER) → TINYINT
```

Link: /products/haybarn/functions/releases/duckdb-1.4.4/round/#overload-23d7d97f5e1a0106

| Argument | Catalog type | Calling mode |
| --- | --- | --- |
| x | TINYINT | not recorded |
| precision | INTEGER | not recorded |

Declared return type: TINYINT. Variadic argument type: none declared.
Stability: CONSISTENT. Declared side effects: false.


## Guide recipes

No guide recipes.

## Engine catalog examples

Source examples may require additional data or extensions. Expressions are wrapped in SELECT; execution verification is not recorded.

Reported for: overload-197b63e23b1ee4df, overload-a52745242179d318, overload-40076132fda8ab8a, overload-d937de3ffbce8fc0, overload-027c3069b6bc288d, overload-0114af8aa51f4524, overload-c9fadf1a9f037e1c, overload-f44296c4fac44208, overload-b352100c5328fbb7, overload-5e424245462b3105, overload-c3ad32986ade2927, overload-c732d9f74163832b, overload-88af24542533e28a, overload-0395ab159ea2faa8, overload-3bdee56048af4729, overload-23d7d97f5e1a0106

```sql
SELECT round(42.4332, 2);
```

## Runnable examples

Executed successfully in Haybarn WASM 1.5.5-rc3. Sample data and guide examples are separate from the original catalog.

```sql
SELECT round(42.4332, 2);
```

## Additional DuckDB documentation

- [Numeric Functions](https://duckdb.org/docs/current/sql/functions/numeric#roundv-numeric-s-integer)

## In other engines

### BigQuery: round()

Same function. The SQLGlot example uses the same call in both engines.

```sql
SELECT ROUND(2.25) AS value
```

Translation from [SQLGlot](https://github.com/tobymao/sqlglot/blob/3086608e6fd4c41c02dfba47171608d2b193fce2/tests/dialects/test_bigquery.py#L4092).

### Snowflake: round()

Same function. The SQLGlot example uses the same call in both engines.

```sql
SELECT ROUND(2.25) AS value
```

Translation from [SQLGlot](https://github.com/tobymao/sqlglot/blob/3086608e6fd4c41c02dfba47171608d2b193fce2/tests/dialects/test_snowflake.py#L6279).

## Observed availability

| Snapshot | Observed | Overloads | JSON |
| --- | --- | --- | --- |
| haybarn-1.5.5-rc3 | present | 16 | [reference](/products/haybarn/functions/api/v1/haybarn-1.5.5-rc3/functions/round.json) |
| duckdb-1.5.5 | present | 16 | [reference](/products/haybarn/functions/api/v1/duckdb-1.5.5/functions/round.json) |
| duckdb-1.4.4 | present | 16 | [reference](/products/haybarn/functions/api/v1/duckdb-1.4.4/functions/round.json) |
| duckdb-1.3.2 | present | 16 | [reference](/products/haybarn/functions/api/v1/duckdb-1.3.2/functions/round.json) |

Engine catalog documentation is derived from MIT-licensed Haybarn and DuckDB. [Notices](/third-party-notices.txt).
