From: jerome.cornet@... Date: 2016-11-29T15:14:40+00:00 Subject: [ruby-core:78421] [Ruby trunk Bug#12958] Breaking change in how `#round` works Issue #12958 has been updated by Jerome Cornet. Shyouhei Urabe wrote: > 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. Actually, any money-related calculation (penny rounding) would now be silently changing behavior, leading to weird questions as to why the math doesn't add up to the penny. While consistency is a good thing, I'm not sure why we can't make the default the old behavior, and change sprintf to explicitly call the new behavior. ---------------------------------------- Bug #12958: Breaking change in how `#round` works https://bugs.ruby-lang.org/issues/12958#change-61793 * 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: