to_s(p1 = v1)
public
Returns a string containing the representation of big radix
base (2 through 36).
12345654321.to_s
12345654321.to_s(2)
12345654321.to_s(8)
12345654321.to_s(16)
78546939656932.to_s(36)
Show source
static VALUE
rb_big_to_s(int argc, VALUE *argv, VALUE x)
{
int base;
if (argc == 0) base = 10;
else {
VALUE b;
rb_scan_args(argc, argv, "01", &b);
base = NUM2INT(b);
}
return rb_big2str(x, base);
}