size()
public
Returns the number of bytes in the machine representation of big.
(256**10 - 1).size
(256**20 - 1).size
(256**40 - 1).size
Show source
/*
* call-seq:
* big.size -> integer
*
* Returns the number of bytes in the machine representation of
* <i>big</i>.
*
* (256**10 - 1).size
* (256**20 - 1).size
* (256**40 - 1).size
*/
static VALUE
rb_big_size(big)
VALUE big;
{
return LONG2FIX(RBIGNUM(big)->len*SIZEOF_BDIGITS);
}