2進制轉成8進制
方法:
依公式 23=81 知:
將2進制數,以小數點為中心,
整數部分 向左 每3位元分段,不足位的補0,
小數部分 向右 每3位元分段,不足位的補0,
每段由右至左分別註明權值:1 2 4 1 2 4 --- ,
每段算出10進位值,它就是 8進制的 每一段的答案 。
Ex: 110111000.010111B = 670.27Q
| | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | . | 0 | 1 | 0 | 1 | 1 | 1 | | | |
| | | | | | | | | | | | | | | | | | | | |
| = | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | . | 0 | 1 | 0 | 1 | 1 | 1 | | | |
| | 4 | 2 | 1 | 4 | 2 | 1 | 4 | 2 | 1 | | 4 | 2 | 1 | 4 | 2 | 1 | | | |
| | | | | | | | | | | | | | | | | | | | |
| = | | 6 | | | 7 | | | 0 | | . | | 2 | | | 7 | | | | |
| = | 6 | 7 | 0 | . | 2 | 7 | Q | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | |