1111 -----> 8 + 4 + 2 + 1 = 15
Signed
1111 ------> -8 + 4 + 2 + 1 = -1
In fact 0xF = -1
0xFF = -1
0xFFF = -1
0xFFFF = -1 and so on....
1111 -----> 8 + 4 + 2 + 1 = 15
Signed
1111 ------> -8 + 4 + 2 + 1 = -1
In fact 0xF = -1
0xFF = -1
0xFFF = -1
0xFFFF = -1 and so on....
---------------------------------
Most computers use 2's complement encoding to represent negative values. The MSB is interpreted as having a negative weight.
---------------------------------
Most computers use 2's complement encoding to represent negative values. The MSB is interpreted as having a negative weight.