copy-edits 532b770
This commit is contained in:
parent
532b77077f
commit
32b5c4b77a
@ -1818,7 +1818,7 @@ h3. Extensions to +Float+
|
|||||||
|
|
||||||
h4. +round+
|
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>
|
<ruby>
|
||||||
Math::E.round(4) # => 2.7183
|
Math::E.round(4) # => 2.7183
|
||||||
|
Loading…
Reference in New Issue
Block a user