BitNot
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
Argument | Type | Definition and Requirements |
---|---|---|
|
A single value to take the two’s complement. |
Returns
A Number which is the two’s complement of the value
.
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.
Arr(LongV(-1), LongV(-2), LongV(-8))
[-1 -2 -8]
[-1, -2, -8]
[ -1, -2, -8 ]
[-1, -2, -8]
[-1, -2, -8]
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
Visit Fauna's Discourse forums
or email docs@fauna.com
Thank you for your feedback!