Skip to content

Bitwise NOT

Bitwise NOT operator (~) can be used to perform binary NOT operation on numbers.

Syntax
~operand1
Example
~2
~someNumberValue