BitClear

BitClear[n,k]

将整数 n 在二进制中的第 位数设为 0.

更多信息

  • BitClear[n,k] 清除从右边起的第 k 位数.

范例

基本范例  (1)

列出整数 63 用二进制表示的每一位数:

将右起第 20 位数设为 0:

将右起第 23 位数设为 0:

Wolfram Research (2007),BitClear,Wolfram 语言函数,https://reference.wolfram.com/language/ref/BitClear.html.

文本

Wolfram Research (2007),BitClear,Wolfram 语言函数,https://reference.wolfram.com/language/ref/BitClear.html.

CMS

Wolfram 语言. 2007. "BitClear." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/BitClear.html.

APA

Wolfram 语言. (2007). BitClear. Wolfram 语言与系统参考资料中心. 追溯自 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: 18-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: 18-November-2024 ]}