CHAPTER 4 The Components of the System 3. Data Representation 課件

CHAPTER 4 The Components of the System 3. Data Representation 課件

ID:36386065

大小:890.29 KB

頁數(shù):17頁

時間:2019-05-09

CHAPTER 4 The Components of the System  3. Data Representation 課件_第1頁
CHAPTER 4 The Components of the System  3. Data Representation 課件_第2頁
CHAPTER 4 The Components of the System  3. Data Representation 課件_第3頁
CHAPTER 4 The Components of the System  3. Data Representation 課件_第4頁
CHAPTER 4 The Components of the System  3. Data Representation 課件_第5頁
資源描述:

《CHAPTER 4 The Components of the System 3. Data Representation 課件》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。

1、CHAPTER4TheComponentsoftheSystemUnitDataRepresentation2BinarynumbersBinarynumberissimplyanumbercomprisedofonly0'sand1's.Computersusebinarynumbersbecauseit'seasyforthemtocommunicateusingelectricalcurrent--0isoff,1ison.Youcanexpressanybase10(ournumbersystem--wh

2、ereeachdigitisbetween0and9)withbinarynumbers.Theneedtotranslatedecimalnumbertobinaryandbinarytodecimal.Therearemanywaysinrepresentingdecimalnumberinbinarynumbers.(later)3Howdoesthebinarysystemwork?ItisjustlikeanyothersystemIndecimalsystemthebaseis10Wehave10po

3、ssiblevalues0-9Inbinarysystemthebaseis2Wehaveonlytwopossiblevalues0or1.Thesameasinanybase,0digithasnoncontribution,where1’shascontributionwhichdependsatthereposition.4Example3040510=30000+400+5=3*104+4*102+5*100101012=10000+100+1=1*24+1*22+1*205UnsignedRepres

4、entationRepresentspositiveintegers.Unsignedrepresentationof157:Additionissimple:1001+0101=1110.position76543210Bitpattern10011101contribution27242322206FractionRepresentationTorepresentfractionweneedotherrepresentations:FixedpointrepresentationFloatingpointre

5、presentation.7RepresentationofnegativenumbersIsarepresentationofnegativenumberspossible?Unfortunately:youcannotjuststickanegativesigninfrontofabinarynumber.(itdoesnotworklikethat)Therearethreemethodsusedtorepresentnegativenumbers.SignedmagnitudenotationExcess

6、notationnotationTwo’scomplementnotation8Unicode-representationASCIIcodecanrepresentonly128=27characters.ItonlyrepresentstheEnglishAlphabetplussomecontrolcharacters.Unicodeisdesignedtorepresenttheworldwideinterchange.Ituses16bitsandcanrepresents32,768character

7、s.Forcompatibility,thefirst128UnicodearethesameastheoneoftheASCII.9ColourrepresentationColourscanrepresentedusingasequenceofbits.256colours–howmanybits?HintforcalculatingTofigureouthowmanybitsareneededtorepresentarangeofvalues,figureoutthesmallestpowerof2that

8、isequaltoorbiggerthanthesizeoftherange.Thatis,findxfor2x=>25624-bitcolour–howmanypossiblecolorscanberepresented?Hints16millionpossiblecolours(why16millions?)1024-bits--theTruecolour24-bit

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文

此文檔下載收益歸作者所有

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文
溫馨提示:
1. 部分包含數(shù)學(xué)公式或PPT動畫的文件,查看預(yù)覽時可能會顯示錯亂或異常,文件下載后無此問題,請放心下載。
2. 本文檔由用戶上傳,版權(quán)歸屬用戶,天天文庫負(fù)責(zé)整理代發(fā)布。如果您對本文檔版權(quán)有爭議請及時聯(lián)系客服。
3. 下載前請仔細(xì)閱讀文檔內(nèi)容,確認(rèn)文檔內(nèi)容符合您的需求后進(jìn)行下載,若出現(xiàn)內(nèi)容與標(biāo)題不符可向本站投訴處理。
4. 下載文檔時可能由于網(wǎng)絡(luò)波動等原因無法下載或下載錯誤,付費完成后未能成功下載的用戶請聯(lián)系客服處理。