From c69d2005c3eafda3bf56c16ad35354fafd42c640 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 3 Apr 2008 16:04:31 +0000 Subject: [PATCH] * numeric.c (num_quo): RDoc updated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 2 ++ numeric.c | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d59bb82d83..e455883a46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ Fri Apr 4 00:42:26 2008 Yukihiro Matsumoto * complex.c (nucomp_fdiv): fdiv implementation restored. + * numeric.c (num_quo): RDoc updated. + Thu Apr 3 21:51:45 2008 Tadayoshi Funaba * complex.c (nucomp_int_check): function for DRY real check. diff --git a/numeric.c b/numeric.c index 50cf233d71..4730e62785 100644 --- a/numeric.c +++ b/numeric.c @@ -268,6 +268,10 @@ num_fdiv(VALUE x, VALUE y) * Suppose to return most accurate division result, which * is either rational or float (if any of operands are float). * + * + * 654321.quo(13731) #=> Rational(218107, 4577) + * 654321.quo(13731.24) #=> 47.6519964693647 + * */ static VALUE @@ -2234,10 +2238,6 @@ fixdivmod(long x, long y, long *divp, long *modp) * * Returns the floating point result of dividing fix by * numeric. - * - * 654321.quo(13731) #=> Rational(218107, 4577) - * 654321.quo(13731.24) #=> xxx - * */ static VALUE