computer-science

Bit shifting

November 21, 2020 | math, computer-science

tags Binary calculation Math Computer Science The operators # Operator Meaning >> Arithmetic (signed) right shift operator >>> Logical (unsigned) right shift operator << Left shift operator, meets the needs of logical and arithmetic shifts Left shift << # Integers are stored, in memory, as a series of bits. For example, the number 6 is: ...