Odd math related issue.

Robert Rawlins robert.rawlins at thinkbluemedia.co.uk
Mon Jul 21 05:02:27 EDT 2008


> if you divide two integers, you'll get an integer back (in Python 2.X, 
> at least).  quick fix:
>
>       percentage = bytes_transferred * 100 / total_bytes
>
> </F>

Hey </F>

That worked a charm mate, thanks for the info.

</R>




More information about the Python-list mailing list