Scalar FunctionsMath Functions
binary_not
Return the bitwise negation of a 64-bit integer: every bit is flipped, so `binary_not(x)` equals `-x - 1`.
The result is a long; a null argument gives null.
Aliases: bnot
Syntax
binary_not(value)Parameters
Prop
Type
Returns: long
Examples
Example 1
print binary_not(0), binary_not(255), binary_not(-1)| print_0 (long) | print_1 (long) | print_2 (long) |
|---|---|---|
| -1 | -256 | 0 |