< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Bugs item #10739, was opened at 2007-05-10 22:06
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10739&group_id=426
Category: Core
Group: 1.8.5
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Bertram Scharpf (bscharpf)
Assigned to: Nobody (None)
Summary: Rational comparison to 0 fails when denominator is != 1
Initial Comment:
irb(main):001:0> r = Rational.new! 0, 100
=> Rational(0, 100)
irb(main):002:0> r.zero?
=> false
irb(main):003:0> r == 0
=> false
----------------------------------------------------------------------
>Comment By: Nobuyoshi Nakada (nobu)
Date: 2007-05-10 22:38
Message:
Not a bug.
----------------------------------------------------------------------
Comment By: Nobuyoshi Nakada (nobu)
Date: 2007-05-10 22:38
Message:
Do not use Rational.new! directly.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10739&group_id=426