Hi, Am Donnerstag, 10. Mai 2007, 22:38:50 +0900 schrieb noreply / rubyforge.org: > Bugs item #10739, was opened at 2007-05-10 22:06 > http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10739&group_id=426 > >Status: Closed > 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) > Message: > Not a bug. > Do not use Rational.new! directly. So why then it is defined at all? Is it really neccessary to reveal one ist subtracing 0 from the numerator before comparing it to zero? Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de