BitAnd()
Performs a bitwise logical AND operation.
BitAnd( number1=number, number2=number );
Returns: Number
| Argument | Description |
|---|---|
|
number1
number,
required
|
edit
an integer |
|
number2
number,
required
|
edit
an integer |
Examples
editThe following code example will output an example numbers returned from the bitAnd() function.
inputValue1 = 5;
inputValue2 = 255;
writeOutput(bitAnd(inputValue1, inputValue2));
writeOutput("<br>");
inputValue1 = 5;
inputValue2 = 0;
writeOutput(bitAnd(inputValue1, inputValue2));
See also
- Numbers
- Math
- numeric.bitAnd()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)