The one's complement operator (~), sometimes called the "bitwise complement" operator, yields a bitwise one's complement of its operand. That is, every bit that is 1 in the operand is 0 in the result. Conversely, every bit that is 0 in the operand is 1 in the result. The operand to the one's complement operator must be an integer type.
~ Expression
> A = 0x0F0F0F0F
> PRINT INT_TO_HEX_STR(A)
0x0F0F0F0F
> PRINT INT_TO_HEX_STR(~A)
0xF0F0F0F0