Minor rdoc fix

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ryan 2006-09-24 20:47:57 +00:00
parent 0b5ce0f283
commit c2f9106b1a

View file

@ -1274,9 +1274,9 @@ flo_ceil(num)
* Rounds <i>flt</i> to the nearest integer. Equivalent to: * Rounds <i>flt</i> to the nearest integer. Equivalent to:
* *
* def round * def round
* return floor(self+0.5) if self > 0.0 * return (self+0.5).floor if self > 0.0
* return ceil(self-0.5) if self < 0.0 * return (self-0.5).ceil if self < 0.0
* return 0.0 * return 0
* end * end
* *
* 1.5.round #=> 2 * 1.5.round #=> 2