From: Mathieu Bouchard Date: 2001-05-08T06:13:21+09:00 Subject: [ruby-talk:14814] Re: Integer division oddness > " My father pointed out this oddity. > " Getting -2 seems really wrong to me. I looked at the > In partial answer to my own post, I just found this > link: http://xenia.media.mit.edu/~bdenckla/thesis/texts/htthe/node13.html > It still seems wrong to me. Which is right? -1 or -2? > I guess it boils down to whether or not you believe that the > modulus can be negative. Please see [ruby-talk:3114] ( http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/~poffice/mail/ruby-talk/3114 ) for an explanation of why I thought Ruby 1.6 should return -2 when Ruby 1.4 did return -1. matju