On Tue, Feb 3, 2009 at 11:40 AM, prasad rao wrote:
> hi
a=2.1
a%1==True
> False
a%1==False
> False
b=3.8
b%1==True
> False
b%1==False
> False
> If it gives correct bool, it could be put to good use.
== gives a high degree of equality. In your idea, it would not be a
hi
>>> a=2.1
>>> a%1==True
False
>>> a%1==False
False
>>> b=3.8
>>> b%1==True
False
>>> b%1==False
False
If it gives correct bool, it could be put to good use.
Prasad
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor