[前][次][番号順一覧][スレッド一覧]

ruby-changes:13259

From: marcandre <ko1@a...>
Date: Tue, 22 Sep 2009 02:42:46 +0900 (JST)
Subject: [ruby-changes:13259] Ruby:r25020 (trunk): * ext/bigdecimal/bigdecimal.c (BigDecimal_remainder): Doc fix

marcandre	2009-09-22 02:42:37 +0900 (Tue, 22 Sep 2009)

  New Revision: 25020

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25020

  Log:
    * ext/bigdecimal/bigdecimal.c (BigDecimal_remainder): Doc fix [ruby-core:18796]

  Modified files:
    trunk/ext/bigdecimal/bigdecimal.c

Index: ext/bigdecimal/bigdecimal.c
===================================================================
--- ext/bigdecimal/bigdecimal.c	(revision 25019)
+++ ext/bigdecimal/bigdecimal.c	(revision 25020)
@@ -1148,10 +1148,7 @@
 
 /* Returns the remainder from dividing by the value.
  *
- * If the values divided are of the same sign, the remainder is the same as
- * the modulus (see divmod).
- *
- * Otherwise, the remainder is the modulus minus the value divided by.
+ * x.remainder(y) means x-y*(x/y).truncate
  */
 static VALUE
 BigDecimal_remainder(VALUE self, VALUE r) /* remainder */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]