In-process binary conversion to decimal (method of adding weights)
110101 =1*2^5+1*2^4+0*2^3+1*2^2+0*2^1+1*2^0
1, write 2
2. Index (right to left)
3, multiply coefficient (one by one corresponds)
4. Add
Decimal to Binary (in addition to the right to take the remainder)
The remainder is taken from bottom to top, except 2 to quotient 0
Simple method: ... 8421
Hexadecimal expression
0123456789ABCDEF
octal, hexadecimal and decimal conversions with binary and decimal
Octal representation method o253, hexadecimal representation method ox11
Binary turn octal
ex.11101101 =011 (0*2^2+1*2^1+1*2^0) +101 (1*2^2+0*2^1+1*2^0) +101 (1*2^2+0*2^1+1*2^0)
=o355
1, from right to left three bit a group, not enough to fill 0
2, calculate the value of each group
3. In the order of grouping from left to right
Octal binary to binary: Inverse/divided by 2
Binary Turn hex
ex.11101101 =1110 (1*2^3+1*2^2+1*2^1+0*2^0) +1101 (1*2^3+1*2^2+0*2^1+1*2^0)
=oxed
1, from right to left four bit a group, not enough to fill 0
2, calculate the value of each group
3. In the order of grouping from left to right
Hex Turn binary: Inverse/divided by 2
1, C # Basic finishing (method of conversion)