Number System 數字系統

進制轉換:
0000 = 0(10) = 0(16)
0001 = 1(10) = 1(16)
     .
     .
     .
1010 = 10(10) = A(16)
     .
     .
     .
1111 = 15(10) = F(16)

補數:
1's:0000 → 1111 1010 → 0101
2's:1111 → 0001 0100 → 1100
1的補數就是0 → 1 1 → 0就是了。
2的補數就是取1的補數後再加1,一般都是用來取負數的。

results matching ""

    No results matching ""