Difference between revisions of "BITRSHIFT()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to shift the bits in a numeric value a specified number of places to the right | Function to shift the bits in a numeric value a specified number of places to the right | ||
− | |||
==Syntax== | ==Syntax== | ||
BITRSHIFT(<expN1>,<expN2>) | BITRSHIFT(<expN1>,<expN2>) | ||
− | |||
==See Also== | ==See Also== | ||
[[BITAND()]], [[BITCLEAR()]], [[BITLSHIFT()]], [[BITNOT()]], [[BITOR()]], [[BITSET()]], [[BITTEST()]], [[BITXOR()]] | [[BITAND()]], [[BITCLEAR()]], [[BITLSHIFT()]], [[BITNOT()]], [[BITOR()]], [[BITSET()]], [[BITTEST()]], [[BITXOR()]] | ||
− | |||
==Description== | ==Description== | ||
The BITRSHIFT() function shifts the bits in the numeric value <expN1> the specified number of places to the right <expN2> and returns the new value. If <expN1> and <expN2> are not integers, they will be converted to integer values before the shift takes place. | The BITRSHIFT() function shifts the bits in the numeric value <expN1> the specified number of places to the right <expN2> and returns the new value. If <expN1> and <expN2> are not integers, they will be converted to integer values before the shift takes place. | ||
− | |||
==Example== | ==Example== | ||
Line 22: | Line 18: | ||
3 && 0011 | 3 && 0011 | ||
</code> | </code> | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | [[Category: | + | [[Category:Numeric Data Functions]] |
− | + |
Latest revision as of 08:44, 4 February 2013
Contents
Purpose
Function to shift the bits in a numeric value a specified number of places to the right
Syntax
BITRSHIFT(<expN1>,<expN2>)
See Also
BITAND(), BITCLEAR(), BITLSHIFT(), BITNOT(), BITOR(), BITSET(), BITTEST(), BITXOR()
Description
The BITRSHIFT() function shifts the bits in the numeric value <expN1> the specified number of places to the right <expN2> and returns the new value. If <expN1> and <expN2> are not integers, they will be converted to integer values before the shift takes place.
Example
x = 6 && 0110 y = 1 ? bitrshift(x,y) 3 && 0011