well...I have just read a book of programming which mentions things about binary number, and as I proceeded with it, I was getting more confused.Here is the 2-byte integer value chart.
1 2 3 4 5 6 7 8 9
class="centertext">BIT NUMBER
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0
The calculation is"
Value = 1 x 211 + 1 x 28 + 1 x 25 + 1 x 21
= 2048 + 256 + 32 + 2
= 2338
I'm just wondering like how he got that and how is it done? Just need a clear explanation to it.