BitClearCopy to clipboard.
✖
BitClear
Copy to clipboard.
✖
BitClear[n,k]
sets to 0 the bit corresponding to the coefficient of in the integer n.
Examples
Basic Examples (1)Summary of the most common use cases
Display coefficients at powers of 2 in the integer 63:
Copy to clipboard.
In[1]:=1

✖
https://wolfram.com/xid/0bdp1odga-giugz1
Direct link to example
Out[1]=1

Clear the bit corresponding to the coefficient at 20:
Copy to clipboard.
In[2]:=2

✖
https://wolfram.com/xid/0bdp1odga-k1xmrg
Direct link to example
Out[2]=2

Copy to clipboard.
In[3]:=3

✖
https://wolfram.com/xid/0bdp1odga-faf4ra
Direct link to example
Out[3]=3

Clear the bit corresponding to the coefficient at 23:
Copy to clipboard.
In[4]:=4

✖
https://wolfram.com/xid/0bdp1odga-qnksw
Direct link to example
Out[4]=4

Copy to clipboard.
In[5]:=5

✖
https://wolfram.com/xid/0bdp1odga-gae0t
Direct link to example
Out[5]=5

Wolfram Research (2007), BitClear, Wolfram Language function, https://reference.wolfram.com/language/ref/BitClear.html.
Copy to clipboard.
✖
Wolfram Research (2007), BitClear, Wolfram Language function, https://reference.wolfram.com/language/ref/BitClear.html.
Text
Wolfram Research (2007), BitClear, Wolfram Language function, https://reference.wolfram.com/language/ref/BitClear.html.
Copy to clipboard.
✖
Wolfram Research (2007), BitClear, Wolfram Language function, https://reference.wolfram.com/language/ref/BitClear.html.
CMS
Wolfram Language. 2007. "BitClear." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BitClear.html.
Copy to clipboard.
✖
Wolfram Language. 2007. "BitClear." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BitClear.html.
APA
Wolfram Language. (2007). BitClear. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BitClear.html
Copy to clipboard.
✖
Wolfram Language. (2007). BitClear. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BitClear.html
BibTeX
Copy to clipboard.
✖
@misc{reference.wolfram_2025_bitclear, author="Wolfram Research", title="{BitClear}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/BitClear.html}", note=[Accessed: 06-April-2025
]}
BibLaTeX
Copy to clipboard.
✖
@online{reference.wolfram_2025_bitclear, organization={Wolfram Research}, title={BitClear}, year={2007}, url={https://reference.wolfram.com/language/ref/BitClear.html}, note=[Accessed: 06-April-2025
]}