✔ 最佳答案
1.
23*2 / 35 = 1 .. 11
11*2 / 35 = 0 .. 22
22*2 / 35 = 1 .. 9
9*2 / 35 = 0 .. 18
18*2/ 35 = 1 .. 1
1*2 / 35 = 0 .. 2
2*2 / 35 = 0 .. 4
4*2 / 35 = 0 .. 8
8*2 / 35 = 0 .. 16
16*2 / 35 = 0 .. 32
32*2 / 35 = 1 .. 29
29*2 / 35 = 1 .. 23
23*2 / 35 = 1 .. 11 (重複)
故 23/35 改為2進位
= (0.101010000011 101010000011 101010000011 ...(repeat)
2.
16 改為2進位 = (10000)_2 = B10000
0.92= 23/25
23*2 / 25 = 1.. 21
21*2 / 25 = 1.. 17
...
0.92= 23/35 改為2進位
=0.11101011100001010001 11101011100001010001 ..(repeat)
故 16.92改為2進位
=10100.11101011100001010001 11101011100001010001 ..(repeat)
3.
-20=-(16+4)= -(10000+100)= -10100
or
10000000 - 00010100 = 0110 1100 (2's complement for a byte)
2011-03-12 13:18:20 補充:
更正: (原作答少算一個0)
20= B00010100
-20 = B11101011 +1 =B11101100
or -20=B100000000 - B00010100 =(取8bits)B11101100
2011-03-12 13:22:41 補充:
無法補充作答,故補充在意見欄
2011-03-12 18:45:05 補充:
1. 取8bits(1byte)當一個數,最多有2^8=256種,故可表示256種整數值
含正負與0, 則其值為 -128~+127
2. 取8bits時, 第9bits以上刪除,故B100000000-B00010100= B11101100
相當於 0- 20= -20
3. 例: 35=B00100011
35+(-20)=B00100011+B11101100=B100001111(取8bits)=B00001111=15
OK!?