On 22 Dec 2012, at 08:45, [email protected] 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 -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
