summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-21 17:46:59 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-21 17:46:59 +0000
commit28d641911bd0ed97f59bbf46ba5399995afee07d (patch)
tree0120fe79961b9dcf046c4d43a08826409503c3e8 /numeric.c
parent6092bb2affd9195dcfe21c44802f26c7a3faae61 (diff)
* numeric.c: Fix doc for #remainder [ruby-core:18796]
* ext/bigdecimal/bigdecimal.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/numeric.c b/numeric.c
index eb5657b494..991fe977f5 100644
--- a/numeric.c
+++ b/numeric.c
@@ -366,11 +366,9 @@ num_modulo(x, y)
* call-seq:
* num.remainder(numeric) => result
*
- * If <i>num</i> and <i>numeric</i> have different signs, returns
- * <em>mod</em>-<i>numeric</i>; otherwise, returns <em>mod</em>. In
- * both cases <em>mod</em> is the value
- * <i>num</i>.<code>modulo(</code><i>numeric</i><code>)</code>. The
- * differences between <code>remainder</code> and modulo
+ * <code>x.remainder(y)</code> means <code>x-y*(x/y).truncate.</code>
+ *
+ * The differences between <code>remainder</code> and modulo
* (<code>%</code>) are shown in the table under <code>Numeric#divmod</code>.
*/