binary_not()
Returns a bitwise negation of the input value.
binary_not(x)
Syntax
binary_not(
num1)
Arguments
- num1: numeric
Returns
Returns logical NOT operation on a number: num1.
Example 1
print binary_not(0xAFAFF00B)
Results
print_0 |
---|
-2947543052 |
Example 2
print result = binary_not(123)
Results
result |
---|
-124 |