Bitwise not

サポート対象:バッチ、高速

Inverts every bit of an integral value. If the value is null, returns null.

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

引数

  • Expression: The value whose bits to invert.
    Expression<Byte | Integer | Long | Short>

出力タイプ: Byte | Integer | Long | Short

例

例1:基本ケース

引数の値:

  • Expression: 5

出力: -6


例2:基本ケース

引数の値:

  • Expression: 12345678910

出力: -12345678911


例3:基本ケース

引数の値:

  • Expression: -1

出力: 0


例4:基本ケース

引数の値:

  • Expression: 0

出力: -1


例5:Null ケース

引数の値:

  • Expression: null

出力: null