From: "Derrick B." Date: 2012-12-24T07:21:34+09:00 Subject: Re: simple division: -9 / 5 = -2 what? Carlo E. Prelz wrote in post #1090035: > > I don't know which one is right, but I thought both C and Ruby were > doing integer maths in the same way... > > Carlo So did I until I translated a C++ homework assignment to Perl, then to Ruby. (See my other thread if you do not already have enough to read. heh ) C++ and Perl are similar in how they round negative quotients of integer division , but from what I read in "The Ruby Programming Language" book, page 45, Ruby is opposite. -- Posted via http://www.ruby-forum.com/.