网站首页  情感咨询  情感美文  情感百科  情感生活  学习充电  旧版美文

请输入您要查询的词汇:

 

词汇 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.

随便看

 

依恋情感网英汉例句词典收录3870147条英语例句词条,基本涵盖了全部常用英语单词的释义及例句,是英语学习的有利工具。

 

Copyright © 2004-2024 Yiyi18.com All Rights Reserved
京ICP备2021023879号 更新时间:2025/8/8 10:33:16