Difference between revisions of "BITRSHIFT()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 21: | Line 21: | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | x = 6 | + | x = 6 && 0110 |
y = 1 | y = 1 | ||
? bitrshift(x,y) | ? bitrshift(x,y) |
Revision as of 10:03, 24 March 2009
Class
Bitwise Operations
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
Products
Recital Database Server, Recital Mirage Server, Recital Terminal Developer