On Thu, May 10, 2007 at 09:59:09AM -0000, Michael G. Noll wrote: > < self.page_count = int(ceil(self.item_count / > self.items_per_page)) > --- > > self.page_count = int(ceil(1.0 * self.item_count / > > self.items_per_page))
This doesn't use floating-point math or ceil: self.page_count = ((item_count - 1) / items_per_page) + 1 m -- Matt Billenstein [EMAIL PROTECTED] http://www.vazor.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
