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:
192.168.24.116 = 1 9 2. 1 6 8 . 2 4 . 1 = 1(=0001) 9(=1001) 2(=0010). 1(=0001) 6(=0110) 8(=1000) .(=0000) 2(=0010) 4(=0100) .(=0000) 1(=0001) = 110010010.000101101000000000100100000000012
answer: 192.168.24.116 = 110010010.000101101000000000100100000000012
now let\'s make the transfer using the decimal system.
let\'s translate to decimal like this:
1∙162+9∙161+2∙160+1∙16-1+6∙16-2+8∙16-3+.∙16-4+2∙16-5+4∙16-6+.∙16-7+1∙16-8 = 1∙256+9∙16+2∙1+1∙0.0625+6∙0.00390625+8∙0.000244140625+.∙1.52587890625E-5+2∙9.5367431640625E-7+4∙5.9604644775391E-8+.∙3.7252902984619E-9+1∙2.3283064365387E-10 = 256+144+2+0.0625+0.0234375+0.001953125+0+1.9073486328125E-6+2.3841857910156E-7+0+2.3283064365387E-10 = 402.08789277100004310
got It: 192.168.24.116 =402.08789277100004310
Translate the number 402.08789277100004310 в binary like this:
the Integer part of the number is divided by the base of the new number system:
402 | 2 | | | | | | | | |
-402 | 201 | 2 | | | | | | | |
0 | -200 | 100 | 2 | | | | | | |
| 1 | -100 | 50 | 2 | | | | | |
| | 0 | -50 | 25 | 2 | | | | |
| | | 0 | -24 | 12 | 2 | | | |
| | | | 1 | -12 | 6 | 2 | | |
| | | | | 0 | -6 | 3 | 2 | |
| | | | | | 0 | -2 | 1 | |
| | | | | | | 1 | | |
|
the Fractional part of the number is multiplied by the base of the new number system:
|
0. | 087892771000043*2 |
0 | .17579*2 |
0 | .35157*2 |
0 | .70314*2 |
1 | .40628*2 |
0 | .81257*2 |
1 | .62514*2 |
1 | .25027*2 |
0 | .50055*2 |
1 | .0011*2 |
0 | .0022*2 |
the result of the conversion was:
402.08789277100004310 = 110010010.00010110102
answer: 192.168.24.116 = 110010010.00010110102