Round to even

Supported in: Batch, Faster, Streaming

Rounds a number to the nearest integer as a double, rounding halfway cases to the even integer. Keeps the sign of a zero result.

Expression categories: Numeric

Declared arguments

  • Expression: Number to round.
    Expression<Numeric>

Output type: Double

Examples

Example 1: Base case

Argument values:

  • Expression: value
valueOutput
2.73.0
2.52.0
3.54.0
-2.5-2.0

Example 2: Null case

Argument values:

  • Expression: value
valueOutput
nullnull