bitwiseAnd

fun A_Number.bitwiseAnd(anInteger: A_Number, canDestroy: Boolean): A_Number

Compute the boolean and operation for the corresponding bits of the receiver and anInteger. Both values are signed 2's complement integers.

For example, if ...11001₂ (negative seven) and ...01010₂ (positive ten) are provided, the result will be ...01000 (eight).

Return

The bitwise and of the receiver and anInteger.

Parameters

anInteger

The integer to combine with the receiver using the bitwise and operation.

canDestroy

Whether the receiver or anInteger can be recycled or destroyed if it happens to be mutable.