BitAnd

Returns the bitwise AND of two long integers.

See also BitNot, BitOr, and BitXor.

Syntax

BitAnd(number1, number2)
number1, number2

Any long integers.

Usage

Bit functions operate on 32-bit integers.

Examples

<!--- This example shows BitAnd --->
<HTML>
<HEAD>
<TITLE>BitAnd Example</TITLE>
</HEAD>

<BODY>
<H3>BitAnd Example</H3>

<P>Returns the bitwise AND of two long integers.
<P>BitAnd(5,255): <CFOUTPUT>#BitAnd(5,255)#</CFOUTPUT>
<P>BitAnd(5,0): <CFOUTPUT>#BitAnd(5,0)#</CFOUTPUT>
<P>BitAnd(128,128): <CFOUTPUT>#BitAnd(128,128)#</CFOUTPUT>

</BODY>
</HTML>