---
title: "round_even function in Strata | Oplema"
description: "Round a number, resolving exact halfway cases toward the nearest even digit. For example, round_even(24.5, 0) returns 24.0."
url: "https://oplema.com/docs/strata/functions/round-even"
updated: "2026-11-04"
---

# round\_even

Round a number, resolving exact halfway cases toward the nearest even digit.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **DOUBLE**.

### Expression

```
round_even(24.5, 0)
```

### Result

```
24.0
```

To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | 24 |

## Arguments and types

```
round_even(x, n)
```

**x**

Any value

**n**

Any value

Supported signatures (1)

```
round_even(x: ANY, n: ANY)
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

If the first argument is missing, the result is NULL.

## Related functions

[roundbankers

Round a number using the half-to-even rule for exact halfway cases.

](https://oplema.com/docs/strata/functions/roundbankers)[even

Round a number away from zero to the next even whole number.

](https://oplema.com/docs/strata/functions/even)[fdiv

Divide two numbers and round the quotient down to a whole number, stored as DOUBLE.

](https://oplema.com/docs/strata/functions/fdiv)[round

Round decimal values to a consistent number of places for prices, measurements or reports.

](https://oplema.com/docs/strata/functions/round)

[Browse numbers](https://oplema.com/docs/strata/functions#numbers) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/numeric.html#round_evenv-numeric-s-integer)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
