Bitshln - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

BitSHLN

Description
Performs a bitwise shift-left, no-rotation operation.
Returns
A number, bitwise shifted without rotation to the left by count bits.
Category
Mathematical functions
Function syntax
BitSHLN(number, count)
See also
BitSHRN
Parameters
Parameter
number
count
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>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>
Description
32-bit signed integer
Integer, in the range 0-31, inclusive; number of bits to shift the number
BitSHLN
407

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents