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, ... ] )
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]
[ 7, 0, 0, 1, 3 ]