Issue #8894 has been updated by samu0101 (tatsuro yasukawa).

ruby -v changed from p195 to 2.2

This problem seems to be solved already since I tried this by ruby 2.2 and didn't have any problem.
So we can close this issue.

вз Result by ruby 2.2

```
2.quo(2.0) # => 1.0

```
Rational(6) / 2.0  # => 3.0
```



----------------------------------------
Bug #8894: Fixnum#quo returns wrong result when given a float
https://bugs.ruby-lang.org/issues/8894#change-63940

* Author: marcandre (Marc-Andre Lafortune)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.2
* 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]



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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>