You specified that your number is in the additional code. For further conversion, you need to get a direct number code. Therefore, let\'s perform the conversion from additional code to direct code.
to do this, first perform the conversion from the additional code to the reverse by subtracting 1 bit, then get the direct code by inverting all the bits except the signed one.
| | | | | | | | | | . | | |
| 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | дополнительный код |
| | | | | | | | | - | 1 | -1 bit |
| 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | обратный код |
| 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | прямой код |
got It:10100010110
This transfer is possible in two ways: direct transfer and using the decimal system.
first, let\'s make a direct transfer.
Fill in the number with missing zeros on the left
let\'s make a direct translation from binary to post-binary like this:
0101000101102 = 010 100 010 110 = 010(=2) 100(=4) 010(=2) 110(=6) = 24268
answer: 010111010102 = 24268
now let\'s make the transfer using the decimal system.
let\'s translate to decimal like this:
0∙211+1∙210+0∙29+1∙28+0∙27+0∙26+0∙25+1∙24+0∙23+1∙22+1∙21+0∙20 = 0∙2048+1∙1024+0∙512+1∙256+0∙128+0∙64+0∙32+1∙16+0∙8+1∙4+1∙2+0∙1 = 0+1024+0+256+0+0+0+16+0+4+2+0 = 130210
got It: 0101000101102 =130210
Translate the number 130210 в octal like this:
the Integer part of the number is divided by the base of the new number system:
| 1302 | 8 | | | |
| -1296 | 162 | 8 | | |
| 6 | -160 | 20 | 8 | |
| 2 | -16 | 2 | |
| | 4 | | |
 |
the result of the conversion was:
130210 = 24268
answer: 010111010102 = 24268