Whatever message this page gives is out now! Go check it out!

BitSHLN

Last update:
May 18, 2026

Description

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

Returns

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

Category

Function syntax

BitSHLN(number, count)

See also

Parameters

Parameter
Description
number
32-bit signed integer
count
Integer, in the range 0-31, inclusive; number of bits to shift the number

Usage

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

Example

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

Example

<cfscript>
  number = 1 ;
  count = 30 ;
  writeOutput(bitshln(number, count)) ; //Returns 1073741824
</cfscript>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page