Forum: Ruby-dev [ruby-trunk - Bug #5515][Open] Integer#quo(aFloat) の結果が Rational になる

C4e88907313843cf07f6d85ba8162120?d=identicon&s=25 tadayoshi funaba (Guest)
on 2011-10-30 09:53
(Received via mailing list)
Issue #5515 has been reported by tadayoshi funaba.

----------------------------------------
Bug #5515: Integer#quo(aFloat) の結果が Rational になる
http://redmine.ruby-lang.org/issues/5515

Author: tadayoshi funaba
Status: Open
Priority: Normal
Assignee:
Category:
Target version: 2.0
ruby -v: ruby 2.0.0dev (2011-10-30 trunk 33566) [i686-linux]


Integer#quo(aFloat) の結果が Rational になる。

5.quo(2.0) #=> (5/2)

1.9.2 では Float になります。
C4e88907313843cf07f6d85ba8162120?d=identicon&s=25 Koichi Sasada (Guest)
on 2012-03-11 08:34
(Received via mailing list)
Issue #5515 has been updated by Koichi Sasada.

Category set to core
Assignee set to Kenta Murata


----------------------------------------
Bug #5515: Integer#quo(aFloat) の結果が Rational になる
https://bugs.ruby-lang.org/issues/5515

Author: tadayoshi funaba
Status: Open
Priority: Normal
Assignee: Kenta Murata
Category: core
Target version: 3.0
ruby -v: ruby 2.0.0dev (2011-10-30 trunk 33566) [i686-linux]


Integer#quo(aFloat) の結果が Rational になる。

5.quo(2.0) #=> (5/2)

1.9.2 では Float になります。
C4e88907313843cf07f6d85ba8162120?d=identicon&s=25 tadf (tadayoshi funaba) (Guest)
on 2013-09-16 08:37
(Received via mailing list)
Issue #5515 has been updated by tadf (tadayoshi funaba).

Status changed from Closed to Open
Priority changed from Normal to High
Target version deleted (Next Major)

直ってないみたい。
そもそも r28844 で間違った事してて、trunk でも表面的に対処してるだけだった。
----------------------------------------
Bug #5515: Integer#quo(aFloat) の結果が Rational になる
https://bugs.ruby-lang.org/issues/5515#change-41846

Author: tadf (tadayoshi funaba)
Status: Open
Priority: High
Assignee: mrkn (Kenta Murata)
Category: core
Target version:
ruby -v: ruby 2.0.0dev (2011-10-30 trunk 33566) [i686-linux]
Backport:


Integer#quo(aFloat) の結果が Rational になる。

5.quo(2.0) #=> (5/2)

1.9.2 では Float になります。
C4e88907313843cf07f6d85ba8162120?d=identicon&s=25 tadf (tadayoshi funaba) (Guest)
on 2013-09-16 08:41
(Received via mailing list)
Issue #5515 has been updated by tadf (tadayoshi funaba).


$ ruby -v -e 'p 5.quo(2.0)'
ruby 2.0.0p317 (2013-09-15 revision 42947) [i686-linux]
(5/2)

----------------------------------------
Bug #5515: Integer#quo(aFloat) の結果が Rational になる
https://bugs.ruby-lang.org/issues/5515#change-41847

Author: tadf (tadayoshi funaba)
Status: Open
Priority: High
Assignee: mrkn (Kenta Murata)
Category: core
Target version:
ruby -v: ruby 2.0.0dev (2011-10-30 trunk 33566) [i686-linux]
Backport:


Integer#quo(aFloat) の結果が Rational になる。

5.quo(2.0) #=> (5/2)

1.9.2 では Float になります。
9361878d459f1709feec780518946ee5?d=identicon&s=25 naruse (Yui NARUSE) (Guest)
on 2013-09-17 09:24
(Received via mailing list)
Issue #5515 has been updated by naruse (Yui NARUSE).

Status changed from Open to Assigned
Target version set to current: 2.1.0


----------------------------------------
Bug #5515: Integer#quo(aFloat) の結果が Rational になる
https://bugs.ruby-lang.org/issues/5515#change-41858

Author: tadf (tadayoshi funaba)
Status: Assigned
Priority: High
Assignee: mrkn (Kenta Murata)
Category: core
Target version: current: 2.1.0
ruby -v: ruby 2.0.0dev (2011-10-30 trunk 33566) [i686-linux]
Backport:


Integer#quo(aFloat) の結果が Rational になる。

5.quo(2.0) #=> (5/2)

1.9.2 では Float になります。
F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 Nobuyoshi Nakada (nobu)
on 2013-12-24 17:31
(Received via mailing list)
Issue #5515 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Assigned to Closed


----------------------------------------
Bug #5515: Integer#quo(aFloat) の結果が Rational になる
https://bugs.ruby-lang.org/issues/5515#change-43878

Author: tadf (tadayoshi funaba)
Status: Closed
Priority: High
Assignee: mrkn (Kenta Murata)
Category: core
Target version: current: 2.1.0
ruby -v: ruby 2.0.0dev (2011-10-30 trunk 33566) [i686-linux]
Backport:


Integer#quo(aFloat) の結果が Rational になる。

5.quo(2.0) #=> (5/2)

1.9.2 では Float になります。
This topic is locked and can not be replied to.