Integer#quo(aFloat) の結果が Rational になる
Integer#quo(aFloat) の結果が Rational になる。
5.quo(2.0) #=> (5/2)
1.9.2 では Float になります。
#3 Updated by Kenta Murata over 3 years ago
- % Done changed from 0 to 100
- Status changed from Assigned to Closed
This issue was solved with changeset r41099.
tadayoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
numeric.c (num_quo): should return a Float for a Float argument.
test/ruby/test_fixnum.rb: Add an assertion for the above change.