mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
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:
parent
0b5ce0f283
commit
c2f9106b1a
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue