clear-bit ( x n -- y )
Factor handbook » The language » Numbers » Arithmetic » Bitwise arithmetic » Additional bitwise arithmetic

Prev:set-bit ( x n -- y )
Next:bit? ( x n -- ? )


Vocabulary
math.bitwise

Inputs
xan integer
nan integer


Outputs
yan integer


Word description
Sets the nth bit of x to zero.

Examples
USING: math.bitwise kernel prettyprint ; 0xff 7 clear-bit .h
0x7f


See also
bit?, set-bit

Definition