lordkrandel wrote:
Una cosa importante è che bytes * factor / n lavori con float, altrimenti se viene immesso bytes e factor interi la divisione sarà intera.On 12/01/2011 11.29, lordkrandel wrote:return ('%.' + str(precision) + 'lf %s') % (bytes * factor / n, label)
Credo che basti fare (untested) bytes = float (bytes) da qualche parte. Lorenzo. _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python