[Zope] sum() produces floats not integers

Chris Withers chrisw at nipltd.com
Thu Sep 25 07:41:44 EDT 2003


Wayne Connolly wrote:
> Thanks so much Chris, there was a minor modification to get it working which
> was the duplication of the python which im sure was just a typo...

Yep, was, sorry about that...

> . but it was perfect nonetheless. To remove the float from returned database
> results ::: <span TAL:replace="python:'%0.f' % charts.plays">Plays</span>
> 
> cheers mate,

No probs...

Chris




More information about the Zope mailing list