On Fri, 22 May 2009 21:33:05 +1000
Joel Ross <jo...@cognyx.com> wrote:

> changed it to "float(number)/total*100" and it worked thanks for all 
> your help appreciated

I believe operator.truediv function also deserves a mention here, since
line "op.truediv(number, total) * 100" somehow seem to make more sense
to me than an explicit conversion.
There's also "op.itruediv" for "number /= float(total) * 100" case.

http://docs.python.org/dev/library/operator.html

-- 
Mike Kazantsev // fraggod.net

Attachment: signature.asc
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to