[ruby-core:78355] [Ruby trunk Bug#12958] Breaking change in how `#round` works
From:
shyouhei@...
Date:
2016-11-25 13:13:29 UTC
List:
ruby-core #78355
Issue #12958 has been updated by Shyouhei Urabe. Of course it changes behaviour. A change always is. The problem is how vital this (rounding an inexact number to a yet more inexact number) is. As far as I can see the Rails breakage only happens in views, where 30secs is shown "less than a minute" instead of "1 minute". That sounds very trivial to me. And yet, did not break silently. ---------------------------------------- Bug #12958: Breaking change in how `#round` works https://bugs.ruby-lang.org/issues/12958#change-61717 * Author: Rafael Fran巽a * Status: Assigned * Priority: Normal * Assignee: Kenta Murata * ruby -v: * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- We noticed in the Rails test suite that there is a breaking change in how `#round` works between 2.3 and 2.4 https://github.com/rails/rails/pull/27091 Is that desirable? I think it is may cause a lot of problem if the behavior of `#round` without any arguments changes between a minor version. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>