Round to even

サポート対象:バッチ、高速、ストリーミング

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: Number to round.
    Expression<Numeric>

出力タイプ: Double

例

例1:基本ケース

引数の値:

  • Expression: value
value出力
2.73.0
2.52.0
3.54.0
-2.5-2.0

例2:Null ケース

引数の値:

  • Expression: value
value出力
nullnull