什么是二补数(2s-complement)?

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 09:57:27
什么是二补数(2s-complement)?什么是二补数(2s-complement)?什么是二补数(2s-complement)?Thetwo''scomplementofabinarynumberi

什么是二补数(2s-complement)?
什么是二补数(2s-complement)?

什么是二补数(2s-complement)?
The two's complement of a binary number is defined as the value obtained by subtracting the number from a large power of two (specifically,from 2N for an N-bit two's complement).The two's complement of the number then behaves like the negative of the original number in most arithmetic,and it can coexist with positive numbers in a natural way.
2s-complement number means 二进制的数字