Whatever message this page gives is out now! Go check it out!
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 |
<h3>BitSHRN Example</h3>
<p>Returns a number, bitwise shifted, without rotation, to the right, by count bits.</p>
<p>BitSHRN(1,1): <cfoutput>#BitSHRN(1,1)#</cfoutput></p>
<p>BitSHRN(255,7): <cfoutput>#BitSHRN(255,7)#</cfoutput></p>
<p>BitSHRN(-2147483548,1): <cfoutput>#BitSHRN(-2147483548,1)#</cfoutput></p><cfscript>
number = 1;
count = 1;
writeOutput(bitshrn(number,count)); //Returns 0
</cfscript>