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/