Bitwise NOT¶
Bitwise NOT operator (~
) can be used to perform binary NOT operation on numbers.
Syntax
~operand1
Example
~2
~someNumberValue
Bitwise NOT operator (~
) can be used to perform binary NOT operation on numbers.
~operand1
~2
~someNumberValue