From: spam.special.for.me@... Date: 2014-02-14T10:19:40+00:00 Subject: [ruby-core:60736] [ruby-trunk - Bug #9519] Wrong multiline calculation Issue #9519 has been updated by Victor Daev. Ooops. How can i fix the layout? ---------------------------------------- Bug #9519: Wrong multiline calculation https://bugs.ruby-lang.org/issues/9519#change-45157 * Author: Victor Daev * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux], ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux], ruby 1.9.3p484 (2013-11-22 revision 43786) [i686-linux] * Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- I have some script with a trouble. p(100 - (1 + 2 + 3 + 4)) # => 90 # ok p(100 - (1 + 2 + 3 + 4)) # => 90 # ok p(100 - (1 + 2 + 3 + 4)) # => 96 # BUT it should be 90 If I run the script I will get $ rvm use 1.9.3 Using /home/user/.rvm/gems/ruby-1.9.3-p484 $ ruby -v ruby 1.9.3p484 (2013-11-22 revision 43786) [i686-linux] $ ruby wrong_multiline_calculation.rb 90 90 96 $ rvm use 2.0.0 Using /home/user/.rvm/gems/ruby-2.0.0-p353 $ ruby -v ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux] $ ruby wrong_multiline_calculation.rb 90 90 96 $ rvm use 2.1 Using /home/user/.rvm/gems/ruby-2.1.0 $ ruby -v ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux] $ ruby wrong_multiline_calculation.rb 90 90 96 ---Files-------------------------------- wrong_multiline_calculation.rb (138 Bytes) -- http://bugs.ruby-lang.org/