FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. For more details, review the migration guide. Contact support@fauna.com with any questions. |
BitAnd
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
BitAnd( value_1, [ value_2, ... ] )
bitand( value_1, [ value_2, ... ] )
BitAnd( value_1, [ value_2, ... ] )
BitAnd( value_1, [ value_2, ... ] )
BitAnd( value_1, [ value_2, ... ] )
Description
The BitAnd
function returns the bit to the result if the bit
exists in all numbers. The arguments must be numbers, and fractional
values are truncated before the operation is applied. The result is the
bitwise AND of all the arguments.
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
List of Numbers |
One or more Numbers to bitwise AND. |
Examples
The following query executes an array of independent bitwise AND operations and returns the answer in the result array. The result array position matches the position in the execution array.
[ 7, 0, 0, 1, 3 ]
[7, 0, 0, 1, 3]
[7 0 0 1 3]
Arr(LongV(7), LongV(0), LongV(0), LongV(1), LongV(3))
[ 7, 0, 0, 1, 3 ]
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!