bitwise operator
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩ ⟩ ⟩ ⟩ bitwise
bitwise and (&), or (|), xor (^),
shift left (<<), right (>>), right with 0 fill (>>>)
these operators convert their operand to 32-bit integers
bitwise operators
bitwise and (&) / or (|) / xor (^) / bitwise not (~)
shift left (<<) / right (>>) / right with 0 fill (>>>)
related topics
2's complement (-x = ~x + 1
)
double tilde (~~) - nearest integer towards 0.
tools
bitview() - 32-bit representation of signed integers.