MSB (Most Significant Bit) and LSB (Least Significant Bit) are terms used in binary notation to refer to the highest and lowest order bits, respectively.
In a binary number, each bit represents a power of 2 starting from the rightmost bit with a value of 2^0 and doubling for each subsequent bit (2^1, 2^2, 2^3, and so on). The MSB is the bit with the highest value, while the LSB is the bit with the lowest value.
Example:
Let's consider the binary number 1011. The leftmost bit (the first bit encountered from the left) is the MSB, and the rightmost bit (the last bit encountered from the left) is the LSB.
- In this example, the MSB is 1, and the weighting of the corresponding bit is 2^3 = 8.
- The LSB is 1, and the weighting of the corresponding bit is 2^0 = 1.
So, in the binary number 1011, the MSB holds the highest value (8), and the LSB holds the lowest value (1).
What is MSB and LSB with example?
1 answer