2014年4月10日 星期四

補數

對二進位而言有1補數系統和2補數系統兩個。

(1) 1的補數系統(1's Complement):1補數系統是指兩數之和為1,則此兩數互為1的補數,亦即0和1互為1的補數。換言之,欲求得二進位數的1補數,只需將0變成1,1變成0即可;例如10102 的1補數為01012

(2) 2的補數系統(2's Complement):2補數系統的求法是先取該數的1補數,再加1即可。

1 則留言:

  1. How do you make money playing poker with the help of online poker
    Poker gambling is much like playing the lottery, where you win at least $20. If you're playing for a งานออนไลน์ while, don't worry,

    回覆刪除