This Function returns a <numeric>, which is the result of comparing each bit of Value 1 to the corresponding bit of Value 2, returning 1 if both bits are 1 and 0 otherwise.
Parameters
Value 1 <numeric> |
|
Value to compare with Value 2. |
|
|
Value 2 <numeric> |
|
Value to compare with Value 1. |
|
|
Example 1
|
|
Example 2 |
BitAnd(10, 2)
Result = 2
|
|
BitAnd(901, 881)
Result = 769 |
|
|
|
Example 3 |
|
|
BitAnd(10, 10)
Result = 10 |
|
|
Updated: 3/21/2018 4:28 PM |