FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. Fauna accounts created after August 21, 2024 must use FQL v10. These accounts will not be able to run FQL v4 queries or access the v4 Dashboard. For more details, see the v4 EOL announcement and migration guide. Contact support@fauna.com with any questions. |
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 ]
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!