mask-bit ( m n -- m' )


Vocabulary
math.bitwise

Inputs
man integer
nan integer


Outputs
m'an integer


Word description
Turns off all bits besides the nth bit.

Examples
USING: math.bitwise kernel prettyprint ; 0xff 2 mask-bit .b
0b100


Definition