# BitAnd()

Performs a bitwise logical AND operation.

```
BitAnd( number1=number, number2=number );
```

**Returns:** number

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| number1 | number | Yes | an integer |  |
| number2 | number | Yes | an integer |  |

# Examples

The following code example will output an example numbers returned from the	 bitAnd() function.

```cfml
    inputValue1 = 5;
    inputValue2 = 255;
    writeOutput(bitAnd(inputValue1, inputValue2));
    writeOutput("<br>");
    inputValue1 = 5;
    inputValue2 = 0;
    writeOutput(bitAnd(inputValue1, inputValue2));
```







# Categories

[Numbers](../../categories/number.md), [Math](../../categories/math.md)

# See Also

[numeric.bitAnd()](../objects/numeric/bitand.md)