ruby-changes:13004
From: nobu <ko1@a...>
Date: Fri, 4 Sep 2009 17:06:23 +0900 (JST)
Subject: [ruby-changes:13004] Ruby:r24749 (trunk): * bignum.c (rb_big_idiv): added rdoc.
nobu 2009-09-04 17:06:12 +0900 (Fri, 04 Sep 2009) New Revision: 24749 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24749 Log: * bignum.c (rb_big_idiv): added rdoc. Modified files: trunk/bignum.c Index: bignum.c =================================================================== --- bignum.c (revision 24748) +++ bignum.c (revision 24749) @@ -2308,7 +2308,9 @@ * 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 @@ 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) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/