size

big.size â integer Instance Public methods Returns the number of bytes in the machine representation of big. (256**10 - 1).size #=> 12 (256**20 - 1).size #=> 20 (256**40 - 1).size #=> 40

to_f

big.to_f â float Instance Public methods Converts big to a Float. If big doesn't fit in a Float, the result is infinity.

to_s

big.to_s(base=10) â string Instance Public methods Returns a string containing the representation of big radix base (2 through 36). 12345654321.to_s #=> "12345654321" 12345654321.to_s(2) #=> "1011011111110110111011110000110001" 12345654321.to_s(8) #=> "133766736061" 12345654321.to_s(16) #=> "2dfdbbc31" 78546939656932.to_s(36) #=> "rubyrules" inspect

|

big | numeric â integer Instance Public methods Performs bitwise or between big and numeric.

~

~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"

eval

binding.eval(string [, filename [,lineno]]) â obj Instance Public methods Evaluates the Ruby expression(s) in string, in the binding's context. If the optional filename and lineno parameters are present, they will be used when reporting syntax errors. def get_binding(param) return binding end b = get_binding("hello") b.eval("param") #=> "hello"

new

new(*args) Class Public methods

new

new() Class Public methods

new

new() Class Public methods

new

new(h,w,m) Class Public methods