Re: [問題] 計算機概相一些觀念釐清
※ 引述《zptdaniel ()》之銘言:
: ※ 引述《larryfeng (ㄚ峰)》之銘言:
: : 6. Consider an 8-bit binary number with the following bit pattern:
: : 10101110
: : (a)What is the decimal number if the bit pattern represents a floating number of
: : the following formal :SEEEMMMM ( S:sing E:exponent M:mantissa ).
: "The sign is 0 for 6."
: ^^^^^^^^^^^^^^^^^^^^^^ ??? 你題目可能打太長了,我猜有內容被截掉.
: : (b)What are the maximal and the minimal positive numbers that can be
: : represented by this format?
: : (理念沒有學過,不知道該如何下手?)
: : (如同上次的 IEEE754 一樣,希望可以教教我)
: (a)
: 1 010 1110 = (-1)^1 * 2^(-2) * 0.1110 = -0.00111(2)
: S EEE MMMM S E M ^代表二進位
這邊有點錯誤
E的部分應該是 -1 而非 -2
M的部分應該是 1.1110 而非 0.1110
所以是 -0.1111(2)
: 請自行轉成十進位
: (b)
: maximal positive numbers = 2^3*0.1111 = 111.1 = 7.5
: minimal ....=2^(-4)*0.1111 = 0.00001111 =(請自行轉換)
這邊也是同樣的錯誤
maximal positive numbers = 2^3 * 1.1111 = 1111.1 = 15.5
minimal positive numbers (正規) = 2^(-2) * 1.0000 = -0.01 = 0.25
(非正規) = 2^(-2) * 0.0001 = -0.000001(2進位)
: 有錯請指教~感恩!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.168.100.128
→
07/07 23:56, , 1F
07/07 23:56, 1F
推
07/08 00:00, , 2F
07/08 00:00, 2F
→
07/08 00:00, , 3F
07/08 00:00, 3F
→
07/08 00:01, , 4F
07/08 00:01, 4F
→
07/08 00:03, , 5F
07/08 00:03, 5F
→
07/08 00:38, , 6F
07/08 00:38, 6F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 3 篇):