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:

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.

CMS

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

BibTeX

@misc{reference.wolfram_2024_bitclear, author="Wolfram Research", title="{BitClear}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/BitClear.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_bitclear, organization={Wolfram Research}, title={BitClear}, year={2007}, url={https://reference.wolfram.com/language/ref/BitClear.html}, note=[Accessed: 21-November-2024 ]}