Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Help, about the shift operation of 16 binary number
Help, about the shift operation of 16 binary number
The "bits" of the shift operation are binary bits.

The binary number 16 should also be converted into binary, and it should also be considered as a binary bit.

For example, shifting 1 bit to the left means shifting the binary bit to the left 1 bit (equal to multiplying by 2), and discarding the number exceeding the most significant bit.

Shifting N bits to the left refers to shifting N bits to the left according to the binary number (equal to the n power of 2), and discarding the number exceeding the highest bit.

For example, shifting right 1 bit is binary shifting right 1 bit (equal to dividing by 2), and the number below the lowest bit is discarded.

Moving n bits to the right means moving n bits to the right according to the binary number (equal to the power of n divided by 2), and discarding the number below the lowest bit.