diff options
author | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-24 20:47:57 +0000 |
---|---|---|
committer | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-24 20:47:57 +0000 |
commit | c2f9106b1a0e068e96564ef03a85a6efd16c4400 (patch) | |
tree | 049b18c0a53fa2a80274934853e07478dabef65b /numeric.c | |
parent | 0b5ce0f283d9e8df94f3053fb4101e94699c418d (diff) |
Minor rdoc fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1274,9 +1274,9 @@ flo_ceil(num) * Rounds <i>flt</i> 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 |