Skip to content
EntityQ232577· pop 35· linked from 180 articles

2の補数

Sign in to save

数 x に対して和 x + y が2の冪乗になる数 y

In the Vinony graph

Within Vinony's link graph, 2の補数 is referenced by 180 other articles, and connects out to bitwise operation, signed number representation and binary numeral system.

It is catalogued under the topic Binary arithmetic.

Its subject is documented across 35 Wikipedia language editions.

Article · 日本語

2の補数(にのほすう)は、2、ないし2のべき乗の補数、またそれによる負の値の表現法である。特に二進法で使われる。(数学的あるいは理論的には、三進法における減基数による補数、すなわち 3n − 1 = 2222....2222(3) による補数も「2の補数」であるが、まず使われることはない) コンピュータの固定長整数型や、固定小数点数で、負の値を表現するためや加算器で減算をするために使われる。 頭の部分の1個以上の0を含む(正規化されていない)ある桁数の二進法で表現された数があるとき、その最上位ビット (MSB) よりひとつ上のビットが1で、残りが全て0であるような値(8ビットの整数であれば、1000000002 = 256)から、元の数を引いた数が2の補数である。MSBの重みが1であるような固定小数点表現の場合は特に「2」の補数となる。

Abstract from DBpedia / Wikipedia · CC BY-SA

Connections

Categories