FUNCTION REFERENCE

bitand

Bitwise AND.

Bitwise AND.

Syntax

c = bitand(a, b)

Elementwise AND of nonnegative integers up to flintmax (2^53); one input may

be a scalar.

Example

bitand(12, 10)   % 8

Integer arrays use their stored class and retain exact 64-bit values; scalar expansion is supported.

Differences from MATLAB: Typed integer inputs use the two-input form; assumed-type options apply to double inputs.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.