3210 column positionBinary
149310 = 1*103 + 4*102 + 9*101 + 3*1003210-1-2 column position
1493.7610 = 1*103 + 4*102 + 9*101 + 3*100 + 7*10-1 + 3*10-2
43210 column positionHexadecimal
101102 = 1*24 + 0*23 + 1*22 + 1*21 + 0*2043210-1-2 column position
10110.012 = 1*24 + 0*23 + 1*22 + 1*21 + 0*20 + 0*2-1 + 1*2-2
3210 column position
12B416 = 1*163 + 2*162 + 11*161 + 4*160 = 4096 + 512 + 176 + 4 = 4788103210-1-2 column position
12B4.0A16 = 1*163 + 2*162 + 11*161 + 4*160 + 0*16-1 + 10*16-2
= 4096 + 512 + 176 + 4 + 10/256 = 4788 10/25610
| Decimal | Binary | Hexadecimal | Decimal | Binary | Hexadecimal | |
| 0 | 0000 | 0 | 8 | 1000 | 8 | |
| 1 | 0001 | 1 | 9 | 1001 | 9 | |
| 2 | 0010 | 2 | 10 | 1010 | A | |
| 3 | 0011 | 3 | 11 | 1011 | B | |
| 4 | 0100 | 4 | 12 | 1100 | C | |
| 5 | 0101 | 5 | 13 | 1101 | D | |
| 6 | 0110 | 6 | 14 | 1110 | E | |
| 7 | 0111 | 7 | 15 | 1111 | F |
From Decimal to any Base - Algorithm can be roughly stated as:
24 Quotient 2 0
10/ 245 10/24 10/ 2
-20 -20 -0
45 4 2
-40
5 Remainder
Result 24510 = 24510
12 Quotient 6 3 1 0 2/ 25 2/ 12 2/ 6 2/3 2/1 24 12 6 2 0 1 Remainder 0 0 1 1Result 2510 = 110012
299 Quotient 18 1 0 16/4788 16/ 299 16/ 18 16/1 : : 16 0 4 Remainder 1110 = B16 2 1Result 478810 = 12B416 Binary to Hexadecimal - Group right to left by 4's and use memorized table on each group.
Examples+ 0 0 1 1 +0 +1 +0 +1 0 1 1 10- 0 0 1 1 -0 -1 -0 -1 0 -1 1 0* 0 0 1 1 *0 *1 *0 *1 0 0 0 1/ 0/0 undefined 1/0 undefined 0/1 = 0 1/1 = 1
10110 10110 1010 1010
+1011 -1011 *101 101/110010
100001 1011 1010 -101
0000 010
+1010 -000
110010 101
-101
000
000
Hexadecimal Arithmetic - Convert digits to decimal, do arithmetic, convert back to hexadecimal.
Examples
ACE 167B +BAD -ACE 167B BADCDE 1C89 +FAB -FAB 1C89 CDEFF 100 +1 -1 100 FF