# Bitwise And

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.

Function available for the following operating systems:

![](https://3821468174-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LrTlA1suFa5N48x_83N%2F-MAlPVpH3WRwBy16c7JY%2F-MAlQBZuuTnc6hyzKSVQ%2Fimage.png?alt=media\&token=5c9534b7-ca05-4ac4-b408-2207cd5a5295)

### Parameters

* **Value 1** *\<numeric> -* Value to compare with Value 2
* **Value 2** *\<numeric> -* Value to compare with Value 1.

### **Examples**

* *Example 1*

BitAnd(10, 2)\
**Result** = 2

* *Example 2*

BitAnd(901, 881)\
**Result** = 769
