~

~big รข integer
Instance Public methods

Inverts the bits in big. As Bignums are conceptually infinite length, the result acts as if it had an infinite number of one bits to the left. In hex representations, this is displayed as two periods to the left of the digits.

sprintf("%X", ~0x1122334455)    #=> "..FEEDDCCBBAA"
doc_ruby_on_rails
2015-03-31 12:57:24
Comments
Leave a Comment

Please login to continue.