round_even
Round a number, resolving exact halfway cases toward the nearest even digit.
Try an expression
In Formula, enter the expression and set Output type to DOUBLE.
Expression
round_even(24.5, 0)Result
24.0To use your own data, replace the example values with column names. Keep format strings and other options as written.
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.
Function metadata from DuckDB, used under the MIT license.