Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
bitwise not or complement : Bitwise Operations « Language Basics « Ruby
Ruby
Language Basics
Bitwise Operations
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