Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | bitwise_and(int1, int2) | Package | bitwise | Alias | | Pkg Usage | b_and(int1, int2) | |
Description
Excerpt |
---|
|
Takes two numbers as operands and does AND on every bit of two numbers. |
Takes two numbers as operands and does AND on every bit of two numbers. The result of AND is 1 only if both bits are 1.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
int1 | Integer | Yes | First operand. | int2 | Integer | Yes | Second operand. | |
Return Type
Integer
The result of the bitwise operation.
Example
Code Block |
---|
|
use "bitwise";
int result = b_and(int1, int2);
//------------or-----
//no package needed
int result = bitwise_and(int1, int2); |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "math_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|