BitAnd

Description

Returns the bitwise AND of two long integers.

Category

Mathematical functions

Syntax


BitAnd(number1, number2) 

See also

BitNot, BitOr, BitXor

Parameters

Parameter
Description
number1, number2
A 32-bit signed integer

Usage

Bit functions operate on 32-bit signed integers, in the range -2147483648 to 2147483647.

Example

<!--- 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>    



Banner.Novgorod.Ru