[Zope] Photo: somes issues and thoughts

marc lindahl marc@bowery.com
Fri, 04 Jan 2002 11:40:13 -0500


> From: J M Cerqueira Esteves <jmce@artenumerica.com>

> 
> Yes, it was wrong, but it should be  width = w0 * hM / h0 ...

I knew I would get that upside down!  I was staring at it...

> 
>> But as for float vs fix, I think if you do the same calculation with float
>> you'll still get the same result after you int.
> 
> Not always.

you're starting with int's, so the worst you can get is one roundoff from
the divide.  unless you add a 0.5 to round instead of floor, then it'll be
the same.