1 / 5

网络知识微课系列(二)

网络知识微课系列(二). 主题:二进制转换成十进制. 作者:欧阳俊 单位:广东省佛山市顺德区陈村职业技术学校. R 进位数制转换成十进制公式. 按基数 R 位权展开求和公式:. N R (a n a n-1 ‥‥ a 2 a 1 a 0 .a -1 a -2 ‥‥ a -m )=. ×R i. = a n × R n + a n-1 × R n-1 + ‥‥ + a 2 × R 2 + a 1 × R 1 + a 0 × R 0 .a -1 × R -1 a -2 × R -2 + ‥‥ + a -m × R -m. 整数部分. 小数部分.

Download Presentation

网络知识微课系列(二)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 网络知识微课系列(二) 主题:二进制转换成十进制 作者:欧阳俊 单位:广东省佛山市顺德区陈村职业技术学校

  2. R进位数制转换成十进制公式 按基数R位权展开求和公式: NR(anan-1‥‥a2a1a0.a-1a-2‥‥a-m)= ×Ri =an×Rn+an-1×Rn-1+‥‥+a2×R2+a1×R1+a0×R0.a-1×R-1 a-2×R-2+‥‥+a-m×R-m 整数部分 小数部分

  3. 二进制转换为十进制(整数部分) 整数部分转换 an×Rn+an-1×Rn-1+‥‥+a2×R2+a1×R1+a0×R0 例:(1 1 0 1 0 0 1 1.1101)2=( )10 • 1 0 1 0 0 1 1 位权 27 26 25 24 23 22 21 20 x x x x x x x x 求和 128 64 0 16 0 0 2 1 = = = = = = = = =(211)10 + + + + + + +

  4. 二进制转换为十进制(小数部分) a-1×R-1+a-2×R-2+‥‥+a-m×R-m 小数部分转换 例:(11010011.1 1 0 1)2=( )10 .1 1 0 1 位权 2-1 2-2 2-3 2-4 x x x x 求和 0.5 0.25 0 0.0625 = = = = =(0.8125)10 + + +

  5. 将整数部分与小数部分合在一起,即: • (11010011.1101)2 • 211 0.8125 • =(211.8125)10

More Related