From: t.yasukawa01+ruby@... Date: 2017-03-29T06:06:49+00:00 Subject: [ruby-core:80449] [Ruby trunk Bug#8894] Fixnum#quo returns wrong result when given a float 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: