Web Page - http://www.cs.tau.ac.il/~efif/courses/ComputerProgramming
dn dn-1 dn-2... d2 d1 d0 = |
dn x 10n + dn-1 x 10n-1 + dn-2 x 10n-2 ... d2 x 102 + d1 x 101 + d0 x 100 |
38469 = |
3 x 10 4 + 8 x 10 3 + 4 x 10 2 + 6 x 10 1 + 9 x 10 0 |
bn bn-1 bn-2... b2 b1 b0 = |
bn x 2n + bn-1 x 2n-1 + bn-2 x 2n-2 ... b2 x 22 + b1 x 21 + b0 x 20 |
10110110 = |
1 x 2 7 + 0 x 2 6 + 1 x 2 5 + 1 x 2 4 + 0 x 2 3 + 1 x 2 2 + 1 x 2 1 + 0 x 2 0 = |
1 x 128 + 0 x 64 + 1 x 32 + 1 x 16 + 0 x 8 + 1 x 4 + 1 x 2 + 0 x 1 = |
128 + 32 + 16 + 4 + 2 = |
182 |
on on-1 on-2... o2 o1 o0 = |
on x 8n + on-1 x 8n-1 + on-2 x 8n-2 ... o2 x 82 + o1 x 81 + o0 x 80 |
3264 = |
3 x 8 3 + 2 x 8 2 + 6 x 8 1 + 4 x 8 0 = |
3 x 512 + 2 x 64 + 6 x 8 + 4 x 1 = |
1536 + 128 + 48 + 4 = |
1716 |
hn hn-1 hn-2... h2 h1 h0 = |
hn x 16n + hn-1 x 16n-1 + hn-2 x 16n-2 ... h2 x 162 + h1 x 161 + h0 x 160 |
3b7e = |
3 x 16 3 + 11 x 16 2 + 7 x 16 1 + 14 x 16 0 = |
3 x 4096 + 11 x 256 + 7 x 16 + 14 x 1 = |
12288 + 2816 + 112 + 14 = |
15230 |