Bit shift right unsigned

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

Shifts the given value a number of bits right, filling the vacated high bits with zeros. Byte and short values are widened to integers first. Only the lowest five bits of the number of bits are used for integers, and the lowest six for longs.

式のカテゴリー: バイナリ

引数

  • Expression: The value to shift right.
    Expression<Byte | Integer | Long | Short>
  • Number of bits: The number of bits to shift right by.
    Literal<Integer>

出力タイプ: Integer | Long

例

例1:基本ケース

引数の値:

  • Expression: value
  • Number of bits: 2
value出力
82
-81073741822

例2:Null ケース

引数の値:

  • Expression: value
  • Number of bits: 2
value出力
nullnull