Operators

>>

Supported By

Syntax

expression >> expression

Each expression yields an integer.

Description

The >> operator shifts a given value a specified number of bits to the right using sign extension. Missing bits are filled with the value of the most significant bit.

Note

The expression x >> y is equivalent to floor(x/2^y) when x and y are integers.

See Also

<<, >>>