Issue #3289 has been updated by mame (Yusuke Endoh).

Description updated
Target version set to Next Major


----------------------------------------
Feature #3289: Division of negative numbers
https://bugs.ruby-lang.org/issues/3289#change-33197

Author: patrick_thomson (Patrick Thomson)
Status: Assigned
Priority: Low
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: Next Major


=begin
 The documentation for Numeric (http://www.ruby-doc.org/core/classes/Numeric.html#M000179) states that integer divmod() (and, by extension, /) rounds the quotient towards negative infinity. Python and Tcl behave similarly, while C, Java, bc, and gdb round the quotient towards zero, as is taught in standard arithmetic courses.  
 
 Is this a quirk of MRI's implementation, or is it desired Ruby behavior? If so, why?
 It's counterintuitive that (-x/y) ??? -(x/y), and even moreso when (-x/y) = -(x/y) if x or y is a non-integer.
=end



-- 
http://bugs.ruby-lang.org/