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 hexadecimal to binary like this:
255.0.0.016 = 2 5 5. 0 . 0 . 0 = 2(=0010) 5(=0101) 5(=0101). 0(=0000) .(=0000) 0(=0000) .(=0000) 0(=0000) = 1001010101.2
answer: 255.0.0.016 = 1001010101.2
now let\'s make the transfer using the decimal system.
let\'s translate to decimal like this:
2∙162+5∙161+5∙160+0∙16-1+.∙16-2+0∙16-3+.∙16-4+0∙16-5 = 2∙256+5∙16+5∙1+0∙0.0625+.∙0.00390625+0∙0.000244140625+.∙1.52587890625E-5+0∙9.5367431640625E-7 = 512+80+5+0+0+0+0+0 = 597.10
got It: 255.0.0.016 =597.10
Translate the number 597.10 в binary like this:
the Integer part of the number is divided by the base of the new number system:
597 | 2 | | | | | | | | | |
-596 | 298 | 2 | | | | | | | | |
1 | -298 | 149 | 2 | | | | | | | |
| 0 | -148 | 74 | 2 | | | | | | |
| | 1 | -74 | 37 | 2 | | | | | |
| | | 0 | -36 | 18 | 2 | | | | |
| | | | 1 | -18 | 9 | 2 | | | |
| | | | | 0 | -8 | 4 | 2 | | |
| | | | | | 1 | -4 | 2 | 2 | |
| | | | | | | 0 | -2 | 1 | |
| | | | | | | | 0 | | |
|
the Fractional part of the number is multiplied by the base of the new number system:
|
0. | *2 |
the result of the conversion was:
597.10 = 1001010101.2
answer: 255.0.0.016 = 1001010101.2