bitwise not or complement : Bitwise Operations « Language Basics « Ruby






bitwise not or complement


~1011 # bitwise not or complement => -1012

 








Related examples in the same category

1.do bitwise operations in Ruby.
2.bitwise or
3.bitwise and
4.bitwise exclusive or