| Contents > CFML Reference > ColdFusion Functions > BitSHRN |
|
|
|
|
||
Performs a bitwise shift-right, no-rotation operation.
A number, bitwise shifted, without rotation, to the right by count bits.
BitSHRN(number, count)
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>BitSHRN Example</h3> <p>Returns a number, bitwise shifted, without rotation, to the right, by count
bits. <p>BitSHRN(1,1): <cfoutput>#BitSHRN(1,1)#</cfoutput> <p>BitSHRN(255,7): <cfoutput>#BitSHRN(255,7)#</cfoutput> <p>BitSHRN(-2147483548,1): <cfoutput>#BitSHRN(-2147483548,1)# </cfoutput>
|
|
||
| Contents > CFML Reference > ColdFusion Functions > BitSHRN |
|
|
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.