二进制和十进制的转换 6(10)=110(2): 6/2=3 ---->0 3/2=1-----1 反过来110 0.125(10) = 100(2); 0.1252 =0.25----整0小25 0.252=0.5------整0小5 0.52=1-------整1小0 小是0,整往后取001就是0.001 110(2) = 6(10) 0 1 1 020+1*21+1*2^2=0+2+4=6 100(2)=0.125(10) 0.001 2^-3 = 1/8=0.125