>> operator
Synopsis
This operator
performs a bitwise arithmetic right shift.
Variations
Number >>
ShiftAmount
Performs a bitwise arithmetic right
shift.
Details |
Examples |
Details and examples
Parameters
Number
Specifies a 32-bit integer.
Supported types: Numeric.
ShiftAmount
Specifies the number of bits to shift.
Supported types: Numeric.
Returns
Examples
| 1. |
This example performs 2 right shifts and returns 2.
8>>2
|
| 2. |
This example performs 2 right shifts and returns 2. Note
decimals are ignored (not rounded off) in bitwise shifts.
8.9>>2.9
|