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:
125.2368 = 1 2 5. 2 3 6 = 1(=001) 2(=010) 5(=101). 2(=010) 3(=011) 6(=110) = 001010101.0100111102
answer: 125.2368 = 1010101.010011112
now let\'s make the transfer using the decimal system.
let\'s translate to decimal like this:
1∙82+2∙81+5∙80+2∙8-1+3∙8-2+6∙8-3 = 1∙64+2∙8+5∙1+2∙0.125+3∙0.015625+6∙0.001953125 = 64+16+5+0.25+0.046875+0.01171875 = 85.3085937510
got It: 125.2368 =85.3085937510
Translate the number 85.3085937510 в binary like this:
the Integer part of the number is divided by the base of the new number system:
85 | 2 | | | | | | |
-84 | 42 | 2 | | | | | |
1 | -42 | 21 | 2 | | | | |
| 0 | -20 | 10 | 2 | | | |
| | 1 | -10 | 5 | 2 | | |
| | | 0 | -4 | 2 | 2 | |
| | | | 1 | -2 | 1 | |
| | | | | 0 | | |
|
the Fractional part of the number is multiplied by the base of the new number system:
|
0. | 30859375*2 |
0 | .61719*2 |
1 | .23438*2 |
0 | .46875*2 |
0 | .9375*2 |
1 | .875*2 |
1 | .75*2 |
1 | .5*2 |
1 | .0*2 |
the result of the conversion was:
85.3085937510 = 1010101.010011112
answer: 125.2368 = 1010101.010011112