Binary conversion: binary, decimal octal hexadecimal
One, binary → decimal conversion:
1. Write two
2. Mark Index, left to right, zero-based.
3. Multiply coefficients, each corresponding
4. Add
Example: Binary number 1101 is converted to decimal
The first step:
2 2 2 2
Part II:
2^3 2^2 2^1 2^0
Step Three:
1*2^3 1*2^2 0*2^1 1*2^0
Fourth Step:
1*2^3 + 1*2^2 + 0*2^1 + 1*2^0=13
Port algorithm: 8421-Port algorithm
Second, decimal → binary (except 2 redundancy)
1. The remainder of each step is recorded by the vertical decimal number except 2.
2. In addition to the quotient 0, the remainder is read from the bottom to the binary number.
Three, octal turn decimal
Four, decimal turn octal
V, hexadecimal to decimal
Six, decimal to hexadecimal
Seven, binary turn octal
(three-bit group)
octal to binary binary
(1 split 3)
Nine-binary hex
(four-bit group)
Ten, hex turn binary
(1 split 4)
(hexadecimal number is 1.2.3.4.5.6.7.8.9.A.B.C.D.E.F)
Methods and techniques for converting into a system