Flowdock
method

size

Importance_1
v2_4_6 - Show latest stable - 0 notes - Class: Integer
size() public

Returns the number of bytes in the machine representation of int.

1.size            #=> 4
-1.size           #=> 4
2147483647.size   #=> 4
(256**10 - 1).size   #=> 12
(256**20 - 1).size   #=> 20
(256**40 - 1).size   #=> 40
Show source
Register or log in to add new notes.