summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-04 08:06:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-04 08:06:12 +0000
commit5fe298ff40fdfcf8bf4ca7cad9cd43603889e878 (patch)
tree3ea65a5747e1248fc976eebbfd0db3efccf7efc4
parent4bc4c5238b4df111649af58f09134a824a95bf59 (diff)
downloadruby-5fe298ff40fdfcf8bf4ca7cad9cd43603889e878.tar.gz
ruby-5fe298ff40fdfcf8bf4ca7cad9cd43603889e878.tar.xz
ruby-5fe298ff40fdfcf8bf4ca7cad9cd43603889e878.zip
* bignum.c (rb_big_idiv): added rdoc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--bignum.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index b4e13444e..a2ce0bc3b 100644
--- a/bignum.c
+++ b/bignum.c
@@ -2308,7 +2308,9 @@ rb_big_divide(VALUE x, VALUE y, ID op)
* call-seq:
* big / other => Numeric
*
- * Divides big by other, returning the result.
+ * Performs division: the class of the resulting object depends on
+ * the class of <code>numeric</code> and on the magnitude of the
+ * result.
*/
VALUE
@@ -2317,6 +2319,13 @@ rb_big_div(VALUE x, VALUE y)
return rb_big_divide(x, y, '/');
}
+/*
+ * call-seq:
+ * big.div(other) => integer
+ *
+ * Performs integer division: returns integer value.
+ */
+
VALUE
rb_big_idiv(VALUE x, VALUE y)
{