Actions
Bug #13986
closedInteger#fdiv with Complex returns unexpected value
Bug #13986:
Integer#fdiv with Complex returns unexpected value
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin15]
Backport:
Description
Updated by nobu (Nobuyoshi Nakada) almost 9 years ago
- Related to Bug #13928: Calling Integer.fdiv with BigDecimal returns unexpected result added
Updated by nobu (Nobuyoshi Nakada) almost 9 years ago
- Description updated (diff)
- Status changed from Open to Feedback
5.5 (5 5) wrote:
期待は,それぞれ
でした。
2.4の結果がおかしいのは確かですが、その期待は本当に正しいんでしょうか。
ドキュメント上は以下のように単にfloatを返すことになっています。
Returns the floating point result of dividing
intbynumeric.
trunkではComplex(1.0, 0.0).to_fと同様例外になります。
Updated by 5.5 (5 5) almost 8 years ago
- Status changed from Feedback to Closed
反応が遅くなってすみません。
現行の(修正後の)仕様について、そういうものなのだろう、と納得いたしました。
Actions