二進位制轉十進位制計算方法
阿新 • • 發佈:2018-11-26
口訣: 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 ........
11111111 (2) 從右往左數平方 0開始
=1x20+1x21+1x22+1x23+1x24+1x25+1x26+1x27
=1+2+4+8+16+32+64+128
=255 (10)
11111111=1x20+1x21+1x22+1x23+1x24+1x25+1x26+1x27=255
1111111 =127
111111 =63
11111 =31
1111 =15
111 =7
11 =3
1 =1
10000000 = 0x20+0x21+0x22+0x23+0x24+0x25+0x26+1x27=128
1000000=0x20+0x21+0x22+0x23+0x24+0x25+1x26=64
100000=0x20+0x21+0x22+0x23+0x24+1x25=32
10000=0x20+0x21+0x22+0x23+1x24 =16
1000=0x20+0x21+0x22+1x23=8
100=0x20+0x21+1x22=4
10=0x20+1x21=2
1=1x20=1
1101.01 (2)遇小數點從左往右數平方 1開始
=1x20+0x21+1x22+1x23+0x2-1+1x2-2
=1+0+4+8+0+0.25
=13.25