2進制轉成16進制
方法:
依公式 24=161 知:
將2進制數,以小數點為中心,
整數部分 向左 每4位元分段,不足位的補0,
小數部分 向右 每4位元分段,不足位的補0,
每段由右至左分別註明權值:1 2 4 8 1 2 4 8 --- ,
每段算出10進位值,它就是 16進制的 每一段的答案,超過9用英文表示 。
Ex: 110111000.010111B = 1B8.5CH
| | | | | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | . | 0 | 1 | 0 | 1 | 1 | 1 | B | | |
| | | | | | | | | | | | | | | | | | | | | | | |
| = | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | . | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | B |
| | 8 | 4 | 2 | 1 | 8 | 4 | 2 | 1 | 8 | 4 | 2 | 1 | | 8 | 4 | 2 | 1 | 8 | 4 | 2 | 1 | |
| | | | | | | | | | | | | | | | | | | | | | | |
| = | | 1 | | | | 11 | | | | 8 | | | . | | 5 | | | | 12 | | | |
| = | | 1 | | | | B | . | | | 8 | | | . | | 5 | | | | C | | | |
| = | 1 | B | 8 | . | 5 | C | H | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | | | |