网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 Twos complement
释义

Twos complement

中文百科

二补数 Two's complement

(重定向自Twos complement)

二补数2's complement)是一种用二进位表示有号数的方法,也是一种将数字的正负号**的方式,常在计算机科学中使用。在中国称作补码,**和香港称为二补数

一个数字的二补数就是将该数字作比特反相运算(即一补数或反码),再将结果加1。在二补数系统中,一个负数就是用其对应正数的二补数来表示。

二补数系统的最大优点是可以在加法或减法处理中,不需因为数字的正负而使用不同的计算方式。只要一种加法电路就可以处理各种有号数加法,而且减法可以用一个数加上另一个数的二补数来表示,因此只要有加法电路及二补数电路即可完成各种有号数加法及减法,在电路设计上相当方便。

英语百科

Two's complement 二补数

(重定向自Twos complement)

Two's complement is a mathematical operation on binary numbers, as well as a binary signed number representation based on this operation. Its wide use in computing makes it the most important example of a radix complement.

The two's complement of an N-bit number is defined as the complement with respect to 2; in other words, it is the result of subtracting the number from 2. This is also equivalent to taking the ones' complement and then adding one, since the sum of a number and its ones' complement is all 1 bits. The two's complement of a number behaves like the negative of the original number in most arithmetic, and positive and negative numbers can coexist in a natural way.

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/17 8:12:19