《各进制相互转换1.pdf》由会员分享,可在线阅读,更多相关《各进制相互转换1.pdf(5页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、各进制相互转换专题总结一:了解进制数制转换不同进位计数制之间的转换原则:不同进位计数制之间的转换是根据两个有理数如相等,则两数的整数和分数部分一定分别相等的原则进行的。也就是说,若转换前两数相等,转换后仍必须相等。有四进制十进制:有 10 个基数:0 9,逢十进一二进制:有 2 个基数:0 1,逢二进一八进制:有 8 个基数:0 7,逢八进一十 六 进 制:有16个 基 数:0 9,A,B,C,D,E,F(A=10,B=11,C=12,D=13,E=14,F=15),逢十六进一二:十进制转化为二,八,十六进制(1):十进制转化为二进制原则是:要将十进制转为各进制的方式,只需除以各进制的权值,取
2、得其余数,第一次的余数当个位数,第二次余数当十位数,其余依此类推,直到被除数小于权值,最后的被除数当最高位数。例子:55 转为二进制55/2 商余数位数27 1 第一位13 1 第二位6 1 第三位3 0 第四位1 1 第五位1 1 第六位结果是:110111(2):十进制转为八进制例子:5621转为八进制5621/8 商余数位数702 5 第一位87 6 第二位10 7 第三位1 2 第四位1 1 第五位结果是:12765(3):十进制转为十六进制例子:76521转为十六进制76521/16 商余数位数4782 9 第一位文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T
3、10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM
4、4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1
5、Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H
6、7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:
7、CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 H
8、J1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI
9、2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9298 14 第二位18 10 第三位1 2 第四位1 1 第五位结果是:12AE9 三:二进制转为八,十,十六进制(1):二进制转为八进制例子:将 1001001转为八进制 6543210 1:第一种方法将 1001001转换为十进制,按位权展开,第 0 位的权值是 2 的 0 次方,第1 位的权值是 2 的 1 次方.以此类推2
10、0*1+21*0+22*0+23*1+24*0+25*0+26*1=1+8+64=73;十进制转为八进制:73/8 商余数位数9 1 第一位1 1 第二位1 1 第三位结果是:111 2:第二种方法对应位权,二进制1001001对应八进制位权(从右到左)三位对应一位,即 001=1,001=1,001=1(不足三位在前面补全三位,如最左位 1 前面补两个 0)。结果:(1001001)2=(111)8 001=1 010=2;011=3;100=4;011 100 010 文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1
11、Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H
12、7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:
13、CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 H
14、J1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI
15、2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编
16、码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6
17、 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9(2)二进制转为十六进制将二进制每四位对齐,不足的前面补零,采用 8421 法则进行计算,相互的对应的乘积相加即可例子:将 1001001转为十六进制1 0 0 1 0 0 1 0 1 0 0 1 0 0 1 8 4 2 1 8 4 2 1 0 4 0 0 8 0 0 1 4 9 结果就是:49 四:位移的操作运算:左移(高位丢失,低位以0 填充)例子:-2 右移(低位丢失,高位以符
18、号填充)例子:-22 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0(-2)1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 右移两位,低 2 位移除丢弃,高2 位用 1 填充,这是一个符号右移操作,高位用操作数的符号位填充文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C
19、2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T1
20、0B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4
21、D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z
22、3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7
23、T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:C
24、M4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ
25、1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2
26、H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码
27、:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6
28、HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 Z
29、I2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档
30、编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9文档编码:CM4D4F3T1D6 HJ1Z3C2R7T7 ZI2H7T10B8X9