4 Jan
2002
4 Jan
'02
4:40 p.m.
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.