[Tutor] weird bool

prasad rao prasadaraon50 at gmail.com
Tue Feb 3 11:40:14 CET 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090203/85344a7f/attachment.htm>


More information about the Tutor mailing list