关于二进制补码
学号:16340146
学院
目录
1.二进制补码介绍1
二进制补码(Two’s 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.
计算
1). Negative(I)=2k−I
2).将每一位取反再加1.
2.二进制补码的证明
证明:在十进制中n位二进制可表示为:
N=d1+d2×2+d3×22+⋯+dn−1×2n−2+dn