Returns number bitwise shifted without rotation to the right by count bits.
BitSHRN(number, count)
Parameter |
Description |
---|---|
number |
32-bit signed integer to shift to the right |
count |
Integer; number of bits to shift the number |
Bit functions operate on 32-bit signed integers, in the range -2147483648 to 2147483647.
<!--- 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>