---
title: "even function in Strata | Oplema"
description: "Round a number to the next even whole number, always away from zero. For example, even(2.9) returns 4.0. Works in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/even"
updated: "2026-11-04"
---

# even

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

## Try an expression

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

### Expression

```
even(2.9)
```

### Result

```
4.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 | 4 |

## Arguments and types

```
even(x)
```

**x**

Number

Supported signatures (1)

```
even(x: DOUBLE) → DOUBLE
```

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

[ceil

Round a number up to the nearest whole number.

](https://oplema.com/docs/strata/functions/ceil)[ceiling

Round a number up to the nearest whole number.

](https://oplema.com/docs/strata/functions/ceiling)[floor

Round a number down to the nearest whole number.

](https://oplema.com/docs/strata/functions/floor)[round\_even

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

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

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

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