BitClear

BitClear[n,k]

sets to 0 the bit corresponding to the coefficient of in the integer n.

Details

  • BitClear[n,k] clears the bit k places from the right.

Examples

Basic Examples  (1)

Display coefficients at powers of 2 in the integer 63:

Clear the bit corresponding to the coefficient at 20:

Clear the bit corresponding to the coefficient at 23:

Introduced in 2007
 (6.0)