Re: Error .. Please Help
On Thu, Dec 13, 2012 at 8:23 PM, inshu chauhan <firstname.lastname@example.org> wrote:
>> Are you really getting floating point values, or are they always going
>> to be equal to an integer? Those if/elif statements might be a problem
>> if you ever need to compare to a value like (128.4, 255.0, 255.0).
> I dont have values with decimal part, All values are integer.
Find out how the tuples are actually being given to you. Floating
point values are rather annoying when it comes to comparisons. Try
printing out one of the tuples; I would hope that it has integer
values, not floats, in it.
|All times are GMT. The time now is 01:23 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.