From: Alan Forrester Date: 2012-12-22T19:55:03+09:00 Subject: Re: simple division: -9 / 5 = -2 what? On 22 Dec 2012, at 08:45, sto.mar@web.de wrote: > Am 22.12.2012 07:11, schrieb rubyinfo: >> I believe ruby followed c in the convention of integer/integer => integer >> so you get 9/5 => 2 > > No, 9 / 5 => 1 ! > > Integer division with quotient 1, remainder (modulus) 4. What appears to happen is that Ruby does the division and rounds down to the nearest integer. Alan