※ 引述《tool11 (:))》之銘言:
: 1.
: Using 10's complement,evaluate 271828 - 3419 ?
10's 就是 9's + 1
10's
所以 3419 ------> 996581 (-3419)
271828
+ 996581
------------
1 268409
此時 進位值為 0 代表負
1 代表正
: 2.What is the decimal equivalent of the following IEEE-754
: floating point representation?
: 00111110011010000000000000000000
轉換成
01111100 = 124
(-1)^0 * 1.1101 *2^(124-127) = 1.1101 * 2^ -3
= 0.0011101
= 1/8 + 1/16 + 1/32 + 1/128
= 29/128
= 0.2265625
不知道有沒有錯
--
一切....
似乎都不再那麼重要....
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.46.169.86