Skip to content

Commit 6da90f3

Browse files
committed
* bignum.c (rb_big_idiv): added rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent e825a2c commit 6da90f3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

bignum.c

+10-1
Original file line numberDiff line numberDiff line change
@@ -2308,7 +2308,9 @@ rb_big_divide(VALUE x, VALUE y, ID op)
23082308
* call-seq:
23092309
* big / other => Numeric
23102310
*
2311-
* Divides big by other, returning the result.
2311+
* Performs division: the class of the resulting object depends on
2312+
* the class of <code>numeric</code> and on the magnitude of the
2313+
* result.
23122314
*/
23132315

23142316
VALUE
@@ -2317,6 +2319,13 @@ rb_big_div(VALUE x, VALUE y)
23172319
return rb_big_divide(x, y, '/');
23182320
}
23192321

2322+
/*
2323+
* call-seq:
2324+
* big.div(other) => integer
2325+
*
2326+
* Performs integer division: returns integer value.
2327+
*/
2328+
23202329
VALUE
23212330
rb_big_idiv(VALUE x, VALUE y)
23222331
{

0 commit comments

Comments
 (0)