B (binary) binary, O (Octet) octal, D (decimal) Decimal, H (hex) hex
Binary conversions:
1, decimal to n binary
in decimal number/n, the result is again/n until the result is 0, then the remainder of each division result is taken from the back.
Example: 20000 ext. 16 binary
20000/16=1250 Yu 0,
1250/16=78 Yu 2,
78/16=4 (E)
4/16=0 Yu 4
So the result is: 4e20h
2, N to decimal (because decimal is more in line with ordinary people's understanding of data)
The current number of bits per digit *n-1 (calculated from the low) and.
Example: 1011B to decimal 1*2^3+0*2^2+1*2^1+1*2^0 =11
81O Turn Decimal 8*8^2+1*8^1+0*8^0=520
1c4h Turn Decimal 1*16^2+12*16^1+4*16^0=452
3, 2 N-time conversion between the binary
Need to be converted into binary to do transit steps
Example: octal to hexadecimal
(327) o= (D7) H
327o=011 010 111=0000 1101 0111 =d7h
Conversion between binary and binary