Bugs item #10739, was opened at 2007-05-10 15: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: Open
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


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10739&group_id=426