Subject: Re: even? and odd? methods in Integer class
From: kwatch lycos.jp (kwatch)
Date: Tue, 18 Feb 2003 12:07:06 +0900
References: 64977
Mike Wyer <mike / wyer.org> wrote
> Your odd? definition returns true for all ints.
> All integers are 0 modulo 1.
>
> You want self % 2 == 1:
>
Oh, sorry, you're right.
It's my mistake.
kwatch