- 1、本文档共11页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
各种进制的转换(计算机基础呀.)(Various decimal conversions (Computer Fundamentals))
各种进制的转换(计算机基础呀.)(Various decimal conversions (Computer Fundamentals))
Binary, octal, decimal, sixteen decimal conversion
I. conversion between decimal and binary
(1) decimal conversion into binary, divided into integral part and decimal part
Integer part
Methods: in 2 to take over, namely each integer part divided by 2, the remainder is the right number, and the operators continue to divide by 2, the remainder is a bit on the right number, this step continues until the quotient is 0, when the last reading, from the last remainder read, until a remainder in the front. Heres an example:
Example: converts decimal 168 to binary
The result is that the decimal 168 is converted to binary, 2
Analysis: first, divide 168 by 2, quotient 84, and the remainder 0.
The second step is to divide quotient 84 by 2 and quotient 42 to the remainder 0.
The third step is to divide quotient 42 by 2 and quotient 21 to the remainder 0.
The fourth step is to divide quotient 21 by 2 and quotient 10 to the remainder 1.
The fifth step is to divide quotient 10 by 2 and quotient 5 to the remainder 0.
The sixth step is to divide quotient 5 by 2 and quotient 2 to the remainder 1.
The seventh step is to divide quotient 2 by 2 and quotient 1 to the remainder 0.
The eighth step is to divide quotient 1 by 2 and quotient 0 to the remainder 1.
The ninth step is to read, because the last one is obtained by dividing it by 2 several times, so it is the highest point. Read the numbers and read from the last remainder, that is,(2) decimal part
Method: take 2 integer method, the fractional part is multiplied by 2, then take the rest of the decimal integer part, continue to multiply by 2, then the integer part, the remaining fraction and multiplied by 2, has been taken to the fractional part
Zero. If can never be zero, with the decimal number four to five homes, according to the requirements to retain the number of decimal places, according to the back of a 0 or 1, or, if zero drop, if it is
您可能关注的文档
- 个人专业技术工作总结_爱问知识人(Personal professional and technical summary of the work _ Iask).doc
- 个人基层工作科科长个人总结(Individual grass-roots work section chief personal summary).doc
- 个人事迹1(Personal story 1).doc
- 个人与组织匹配研究现状与展望管理(Current situation and prospect management of individual and organization matching).doc
- 个人独资企业、合伙企业个人所得税税前扣除办法(Pre tax deduction of individual income tax for individual proprietorship enterprises and partnership enterprises).doc
- 个人半年总结(我自己的,宣传部门文化干事)(Personal semi annual summary (my own, publicity department, cultural officer)).doc
- 个人气场的形成和提升管理(Formation and promotion management of personal Aura).doc
- 个人职业能力提升计划-教师工作计划(Personal career advancement program - teacher work plan).doc
- 个股期权考试要点(一级)(Stock option examination points (Level 1)).doc
- 个(individual).doc
文档评论(0)