Bitshrn - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

288

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>
CFML Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents