This transfer is possible in two ways: direct transfer and using the decimal system.
first, let\'s make a direct transfer.
let\'s do a direct translation from octal to binary like this:
10001.018 = 1 0 0 0 1. 0 1 = 1(=001) 0(=000) 0(=000) 0(=000) 1(=001). 0(=000) 1(=001) = 001000000000001.0000012
answer: 10001.018 = 1000000000001.0000012
now let\'s make the transfer using the decimal system.
let\'s translate to decimal like this:
1∙84+0∙83+0∙82+0∙81+1∙80+0∙8-1+1∙8-2 = 1∙4096+0∙512+0∙64+0∙8+1∙1+0∙0.125+1∙0.015625 = 4096+0+0+0+1+0+0.015625 = 4097.01562510
got It: 10001.018 =4097.01562510
Translate the number 4097.01562510 в binary like this:
the Integer part of the number is divided by the base of the new number system:
4097 | 2 | | | | | | | | | | | | |
-4096 | 2048 | 2 | | | | | | | | | | | |
1 | -2048 | 1024 | 2 | | | | | | | | | | |
| 0 | -1024 | 512 | 2 | | | | | | | | | |
| | 0 | -512 | 256 | 2 | | | | | | | | |
| | | 0 | -256 | 128 | 2 | | | | | | | |
| | | | 0 | -128 | 64 | 2 | | | | | | |
| | | | | 0 | -64 | 32 | 2 | | | | | |
| | | | | | 0 | -32 | 16 | 2 | | | | |
| | | | | | | 0 | -16 | 8 | 2 | | | |
| | | | | | | | 0 | -8 | 4 | 2 | | |
| | | | | | | | | 0 | -4 | 2 | 2 | |
| | | | | | | | | | 0 | -2 | 1 | |
| | | | | | | | | | | 0 | | |
|
the Fractional part of the number is multiplied by the base of the new number system:
|
0. | 015625*2 |
0 | .03125*2 |
0 | .0625*2 |
0 | .125*2 |
0 | .25*2 |
0 | .5*2 |
1 | .0*2 |
the result of the conversion was:
4097.01562510 = 1000000000001.0000012
answer: 10001.018 = 1000000000001.0000012