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
Parameter | 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 ]
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!