Contents > CFML Reference > ColdFusion Functions > BitAnd PreviousNext

BitAnd

Performs a bitwise logical AND operation.

The bitwise AND of two long integers.

Mathematical functions

BitAnd(number1, number2)

BitNot, BitOr, BitXor

Parameter

Description

number1

32-bit signed integer

number2

32-bit signed integer

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

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


Contents > CFML Reference > ColdFusion Functions > BitAnd PreviousNext

ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa25.htm