From: "marcandre (Marc-Andre Lafortune)" Date: 2013-09-11T13:07:36+09:00 Subject: [ruby-core:57125] [ruby-trunk - Bug #8894][Open] Fixnum#quo returns wrong result when given a float Issue #8894 has been reported by marcandre (Marc-Andre Lafortune). ---------------------------------------- Bug #8894: Fixnum#quo returns wrong result when given a float https://bugs.ruby-lang.org/issues/8894 Author: marcandre (Marc-Andre Lafortune) Status: Open Priority: Normal Assignee: Category: core Target version: ruby -v: p195 Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN Fixnum#quo is buggy. 2.quo(2.0) # => Rational(2, 2) 1) Should return a float, not a rational 2) Moreover, that rational is invalid as it is not reduced. Noticed by David MacMahon [ruby-core:57121] -- http://bugs.ruby-lang.org/