mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
copy-edits 532b770
This commit is contained in:
parent
532b77077f
commit
32b5c4b77a
1 changed files with 1 additions and 1 deletions
|
@ -1818,7 +1818,7 @@ h3. Extensions to +Float+
|
|||
|
||||
h4. +round+
|
||||
|
||||
The built-in method +Float#round+ rounds a float to the nearest integer. In Ruby 1.9 this method takes optional parameter to let you specify a precision. Active Support adds that functionality to +round+ in previous versions of Ruby:
|
||||
The built-in method +Float#round+ rounds a float to the nearest integer. In Ruby 1.9 this method takes an optional argument to let you specify a precision. Active Support adds that functionality to +round+ in previous versions of Ruby:
|
||||
|
||||
<ruby>
|
||||
Math::E.round(4) # => 2.7183
|
||||
|
|
Loading…
Reference in a new issue