BitRShift Function | ![X#](../icons/logo100.jpg) |
Moves bits in a numeric value to the right by the specified number of positions and returns the resulting value.
If the specified expressions are not integers, they are converted to integers before performing the operation.
Namespace:
XSharp.VFP
Assembly:
XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax FUNCTION BitRShift(
Arg AS USUAL,
Bits AS USUAL
) AS LONG
public static int BitRShift(
Usual Arg,
Usual Bits
)
Request Example
View SourceParameters
- Arg
- Type: Usual
Specifies the numeric value in which to move bits to the right.
- Bits
- Type: Usual
Specifies the number of bit positions to move to the right.
Return Value
Type:
Long
Numeric.
BitRShift( ) returns the specified expression with bits moved by the specified number of positions.
RemarksBitRShift( ) does not support Varbinary values.
Examples1x = 5
2y = 1
3? BitRShift(x,y)
See Also