- 1、本文档共99页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
[理学]ch03-Translation
Questions? 用什么来表示十六进制的一位? 0, 1, …, 9, ??? 如何知道一个数是十六进制数? X, x, or (N)16 十六进制数的一位可以用多少位二进制数表示? Questions? 用什么来表示八进制数的一位? 0, 1, 2, 3, 4, 5, 6, 7 如何知道一个数是八进制数? 0, o, or (N)8 八进制数的一位可以用多少位二进制数表示? 取补(complement)?? 考虑一个时钟, 标准时间为4点整,而有一只表已经7点了,为了校准时间,可以采用两种方法:一是将时针退7-4=3个格;一是将时间往前拨12-3=9个格。 7 - 3 = 4 7 + 9 (mod 12)= 4 将减法转换成加法运算 方法二 1.The number is changed to binary; the sign is ignored 忽略符号,将数转换成二进制。 2.0s are added to the left of the number to make a total of N bits. 不足 N 位时,左侧用0 填充至 N位。 3.If the sign is positive, no more action is needed. If the sign is negative, complement the bits and add 1. 正数时不做任何其他操作;负数时,按位取反后加1。 方法二 正数时不做任何操作;负数时按位取反后加1. Floating-Point representation To convert a floating-point number to binary: 1.Convert the integer part to binary. 将整数部分转换成二进制 2.Convert the fraction to binary. 将小数部分转换成二进制 3.Put a decimal point between the two parts. 在两部分中间加上小数点 Example 11 Interpretin decimal if the number was stored as a one’s complement integer. Solution The leftmost bit is 1, so the number is negative. First complement it . The result is The complement in decimal is 9. So the original number was –9. One’s complement means reversing all bits. If you one’s complement a positive number, you get the corresponding negative number. If you one’s complement a negative number, you get the corresponding positive number. If you one’s complement a number twice, you get the original number. Note: Two’s complement is the most common, the most important, and the most widely used representation of integers today. Note: Two’s Complement Format Ranger: -(2 N-1)~ +(2N-1-1) Table 3.7 Range of two’s complement integers # of Bits --------- 8 16 32 -128 -32,768 -2,147,483,648 0
您可能关注的文档
- [理化生]陆地生活的动物1.ppt
- [理化生]高中必修化学模块分析.ppt
- [理化生]高三生物一轮复习必修2《遗传的分子基础》.ppt
- [理化生]第4章 细胞质遗传.ppt
- [理化生]高中生物实验大全攻略.doc
- [理化生]高化1.ppt
- [理学]00绪论.ppt
- [理化生]高中物理学习方法指导.pdf
- [理学]01命题逻辑基本概念.ppt
- [理学]012动量矩定理11.ppt
- 外研版选择性必修第三册 Unit 3 War and peace Starting Out & Understanding Ideas课件(共37张PPT).pptx
- 第14课 第一次世界大战与战后国际秩序 授课课件(共31张PPT).pptx
- 第18课 科技文化成就 课件(共19张PPT).pptx
- 人教版(2025) 必修第三册 Unit 2 Morals and Virtues Listening and Speaking课件(共22张).pptx
- 第20课 狼 课件(共35张PPT).pptx
- 外研版选择性必修 第三册Unit 2 A life’s work Starting out课件(共17张PPT).pptx
- 北师大版(2025) 必修第三册 Unit 8 Green Living Lesson 1 Roots and Shoots Lesson1课件(共23张PPT).pptx
- 北师大版(2025)必修第一册Unit 1 Life Choices Topic Talk 课件(共14张).pptx
- 人教版(2025) 必修第一册 Unit 1 Teenage Life Reading and Thinking 课件(共14张PPT).pptx
- 人教版(2025) 必修第一册 Unit 2 Travelling Around Listening and Talking课件(共16张PPT).pptx
最近下载
- 大数据数据分析项目实践报告.doc
- Unit 6 Electricity everywhere 第4课时 Writing 教学设计 沪教版英语七年级下册.docx
- 防爆电气设备安装与检验考核试卷.docx
- 情态动词-专题课件(共28张课件).ppt VIP
- 《GB 50318-2017城市排水工程规划规范 》最新解读.pptx
- 河南水投集团所属公司招聘笔试真题2024 .pdf
- Unit 2 Travelling Around 大单元整体教学设计-高中英语人教版必修第一册.docx
- 义务教育生物学课程标准(2022年版).docx
- 新人教版一年级数学下册应用题练习带答案(全套).pdf
- 汉字与服饰文化(文字学).ppt VIP
文档评论(0)