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

页数: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 课件》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

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

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。