https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112014-08-14T07:10:11ZRuby Issue Tracking SystemRuby master - Feature #10131: Greatest multiple of r not greater than xhttps://redmine.ruby-lang.org/issues/10131?journal_id=483302014-08-14T07:10:11Zsawa (Tsuyoshi Sawada)
<ul></ul><p>And also a corresponding method that gives the least multiple of r not smaller than x would be helpful.</p>
<pre><code>3.2.ceil(0.5) #=> 3.5
41.ceil(6) #=> 42
</code></pre> Ruby master - Feature #10131: Greatest multiple of r not greater than xhttps://redmine.ruby-lang.org/issues/10131?journal_id=483312014-08-14T07:23:20Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/48331/diff?detail_id=34926">diff</a>)</li><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p><code>Rational#floor</code> and <code>BigDecimal#floor</code> take a <code>precision</code> argument optionally, like as <code>Float#round</code>.</p>