Contents > CFML Reference > ColdFusion Functions > BitSHLN PreviousNext

BitSHLN

Performs a bitwise shift-left, no-rotation operation.

A number, bitwise shifted without rotation to the left by count bits.

Mathematical functions

BitSHLN(number, count)

BitSHRN

Parameter

Description

number

32-bit signed integer

count

Integer, in the range 0-31, inclusive; number of bits to shift the number

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

<h3>BitSHLN Example</h3>
<p>Returns the number, bitwise shifted, without rotation, to the left by count
bits. <p>BitSHLN(1,1): <cfoutput>#BitSHLN(1,1)#</cfoutput> <p>BitSHLN(1,30): <cfoutput>#BitSHLN(1,30)#</cfoutput> <p>BitSHLN(1,31): <cfoutput>#BitSHLN(1,31)#</cfoutput> <p>BitSHLN(2,31): <cfoutput>#BitSHLN(2,31)#</cfoutput>

Contents > CFML Reference > ColdFusion Functions > BitSHLN PreviousNext

ColdFusion 9 | 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/functi31.htm