Vocabulary
math.bitwise

Inputs
xan integer
nan integer


Outputs
yan integer


Examples
USING: math.bitwise prettyprint ; 0xff 8 >signed .
-1

USING: math.bitwise prettyprint ; 0xf0 4 >signed .
0


Word description
Interprets a number x as an n -bit number and converts it to a negative number if the topmost bit is set.

See also
bits

Definition