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:
800000000000000116 = 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 = 8(=1000) 0(=0000) 0(=0000) 0(=0000) 0(=0000) 0(=0000) 0(=0000) 0(=0000) 0(=0000) 0(=0000) 0(=0000) 0(=0000) 0(=0000) 0(=0000) 0(=0000) 1(=0001) = 10000000000000000000000000000000000000000000000000000000000000012
the Final answer: 800000000000000116 = 10000000000000000000000000000000000000000000000000000000000000012
now let\'s make the transfer using the decimal system.
let\'s translate to decimal like this:
the Sign bit is not included in the translation!
0∙1615+0∙1614+0∙1613+0∙1612+0∙1611+0∙1610+0∙169+0∙168+0∙167+0∙166+0∙165+0∙164+0∙163+0∙162+0∙161+1∙160 = 0∙1152921504606846976+0∙72057594037927936+0∙4503599627370496+0∙281474976710656+0∙17592186044416+0∙1099511627776+0∙68719476736+0∙4294967296+0∙268435456+0∙16777216+0∙1048576+0∙65536+0∙4096+0∙256+0∙16+1∙1 = 0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+1 = 110
Since the number is signed and has a signed bit, the result will have a negative sign
got It: 800000000000000116 =-110
Translate the number -110 в binary like this:
the result of the conversion was:
-110 = 12
You specified the size of your number 8 byte.
Add a signed bit to the number like this:
12 = 10000000000000000000000000000000000000000000000000000000000000012
Since the number you entered is negative, you need to translate it from the direct code to the additional one.
to do this, first perform the conversion from direct code to reverse by inverting all bits except the signed one, then get the direct code by adding 1 bit.
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | direct code |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | reverse code |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + | 1 | +1 bit |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | additional code |
the Final answer: 800000000000000116 = 11111111111111111111111111111111111111111111111111111111111111112 (8 byte)