Binary Number ^Help^

2007-05-09 4:35 pm
1. My username at school is QN. Write down how this is stored in the computer memory.

If the left hand most bit is reserved for the sign of the number (0=negative
1=postitive)
2.Convert these signed numbers to decimal equivalent
1). 10111001
2). 10111110

回答 (2)

2007-05-09 8:17 pm
✔ 最佳答案
1. Store char, computer always convert them in to ANSI code first.
Q = 81 = 1000 0001 for 8 bit ANSIC
[ Interpretation: use 4 bit to represent 1 no. e.g: 8=1000, 1=0001
so 81 = 1000 0001]

N = 78 = 0111 1000

2. left hand most bit = sign bit (0=negative, 1=postitive)
1). 1 0111001 = + 57
2). 1 0111110 = + 62
參考: myself
2007-05-09 6:18 pm
1) Q = 81 = 1010001 (or 01010001 for 8 bit ANSI code)
N = 78 = 1001110 (or 01001110)

2.1) +0.4453125
2.2) +0.484375


收錄日期: 2021-05-02 14:11:23
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070509000051KK00653

檢視 Wayback Machine 備份