From c2f9106b1a0e068e96564ef03a85a6efd16c4400 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 24 Sep 2006 20:47:57 +0000 Subject: Minor rdoc fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 3ae1c283d5..97e22c058c 100644 --- a/numeric.c +++ b/numeric.c @@ -1274,9 +1274,9 @@ flo_ceil(num) * Rounds flt to the nearest integer. Equivalent to: * * def round - * return floor(self+0.5) if self > 0.0 - * return ceil(self-0.5) if self < 0.0 - * return 0.0 + * return (self+0.5).floor if self > 0.0 + * return (self-0.5).ceil if self < 0.0 + * return 0 * end * * 1.5.round #=> 2 -- cgit v1.2.3