推 demonwxp:原來如此,小弟我懂了,感謝指導 06/12 07:34
※ 引述《demonwxp (土豆)》之銘言:
: 在此先說明小弟是要跨系考的
: 所以計概完全是自己買了本COMPUTER SCIENCE AN OVERVIEW
: 自己讀,所以如果問題很白痴還請見量
: 問題一.用超四碼代表的分數和正常二進位可否相加?
: EX;44.375=00101100+00111100
: 列出答案是二者要加起來還是只意寫這樣就好還是要把加號去掉?
: 問題二.Express the value in decimal of the BCD number
: (11001001001.00111)BCD ? Ans:649.38
: 這完全不懂是在問什麼
BCD碼是一種以二進位來表達一個十位數字的方式
它的方法是利用四個bits作為一個單位來表達十位數字
譬如 十進位:1 => BCD碼:0001
十進位:2 => BCD碼:0010
十進位:3 => BCD碼:0011
此例題中BCD number為11001001001.00111轉十進位數字
先在適當的位置放0來湊成4-bit的BCD碼: (0)11001001001.00111(000)
再做轉換
BCD: 0110 0100 1001 . 0011 1000
decimal: 6 4 9 . 3 8
: 問題三.A floating-point number in terms of an 8-bit byte repersentation
: consists of 3 fields;a sign bit field,a 3-bit exponent field in express-3
: notation,and a 4-bit mantissa field.What real number does the floating-point
: number 10111010 represent?
: 這題不是用書本教的浮點表示法去解變成-0.0101=-5/16嗎?
: 為什麼買考題的出板社用了書本沒出現過的解法答案也不同?
: (-1)^S*1.F*2^(E-B);S=1,F=1010,E=3,B=3
: =>-1.1010*2^0=-1.1010
: 如果解答正確能否有人幫我解釋一下這算法嗎?
: 小弟先在此大謝了!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.222.119.131