Macromedia coldfusion 4.5-cfml language reference ユーザーズマニュアル

ページ / 608
288
CFML Language Reference 
BitSHRN
Returns number bitwise shifted without rotation to the right by count bits. 
See also 
BitSHLN
.
Syntax
BitSHRN(
number, count)
number
Long integer to be shifted to the right.
count
Integer specifying number of bits the number should be shifted.
Usage
Parameter count must be in the range from 0 to 31.
Bit functions operate on 32-bit integers.
Examples
<!--- This example shows BitSHRN --->
<HTML>
<HEAD>
<TITLE>BitSHRN Example</TITLE>
</HEAD>
<BODY>
<H3>BitSHRN Example</H3>
Returns the 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>
</BODY>
</HTML>