BitNot
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
BitNot( value )
bitnot( value )
BitNot( value )
BitNot( value )
BitNot( value )
BitNot( value )
Description
The BitNot
function returns the
Two’s Complement of a
number. The argument must be a number, and fractional values are
truncated before the operation is applied.
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
Number |
A single value to take the two’s complement. |
Examples
The following query executes an array of independent bitwise NOT operations and returns results in the result array. The result array position matches the position in the execution array.
[ -1, -2, -8 ]
[-1, -2, -8]
[-1 -2 -8]
Arr(LongV(-1), LongV(-2), LongV(-8))
[-1, -2, -8]
[ -1, -2, -8 ]