A use for integer quotients
Just van Rossum
just at letterror.com
Mon Jul 23 04:13:40 EDT 2001
David Eppstein wrote:
> Ok, you convinced me to look more carefully at all the divisions in my
> recent small project, a program to generate web pages from collections of
> JPEGs. I found:
>
> 3 instances of simplifying numbers prior to output (e.g. I want file size
> in kbytes rather than bytes).
> [ ... ]
Do you really want 2047 bytes to be shown as 1 kbyte? Integer division
is a lousy tool in this particular example...
Just
More information about the Python-list
mailing list