码迷,mamicode.com
首页 > 其他好文 > 详细

Two's complement

时间:2016-12-03 23:47:42      阅读:344      评论:0      收藏:0      [点我收藏+]

标签:soc   pre   signed   puts   sso   action   operation   addition   card   

https://en.wikipedia.org/wiki/Two‘s_complement

The two‘s-complement system has the advantage that the fundamental arithmetic operations of addition, subtraction, and multiplication are identical to those for unsigned binary numbers (as long as the inputs are represented in the same number of bits and any overflow beyond those bits is discarded from the result). This property makes the system both simpler to implement and capable of easily handling higher precision arithmetic. Also, zero has only a single representation, eliminating the subtleties associated with negative zero, which exists in ones‘-complement systems.

Two's complement

标签:soc   pre   signed   puts   sso   action   operation   addition   card   

原文地址:http://www.cnblogs.com/yuanjiangw/p/6129851.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!