From To Method
Digital Electronics
Decimal Binary Divide by 2 (read remainders from bottom to top)
Number Systems: ASCII Table Decimal Octa l Divide by 8 (read remainders from bottom to top)
Decimal Hexadecimal Divide by 16 (read remainders from botto m to top)
Binary Decimal Add powers of 2
1. Decimal Octa l Decimal Add powers of 8
2. Octal
Hexadecima l Decimal Add powers of 16
Binary Octa l Group 3 bits from right to left
3. Hex Decimal Binary Hexadecimal Group 4 bits from right to left
4. Binary
Octal Binary 1 octal digit = 3 binary bits
Hexadecimal Binary 1 hex digit = 4 binary bits
Conversions Octa l Hexadecimal Convert Octal -> Binary .... Hexadecimal
For Ex : (A1038) base or radix | 16
Hexadecima l Octa l Convert Hexadecimal .... Binary .... Octal
1. (A1038)16 TO Decimal Or
A 1 0 3 8 A 1 0 3 8
1010 0001 0000 0011 1000 10 1 0 3 8
x x x x x
219 217 212 25 24 23 164 163 162 161 160
=> 524288 + 131072 + 4096 + 32 + 16 + 8 => 659512 => 659512
2. Decimal TO HEX
659512 => ( )16 659512 1. Divide Decimal by same base 16 Q 2576 / 16 => 161.0
659512 / 16 => 41219.5 Q {161} R {0}
Q {41219} R {0.5 x 16 = 8} Q 161 / 16 => 10.0625
2. By same until Q = 0 Q {10} R (0.0625 x 16 => 1}
Now Q 41219 /16 => 2576.1875 Q 10 / 16 = > 0.625
Q {2576} R {0.1875 x 16 = 3} Q {0} R {0.625 x 10 => 10}