W3C home > Mailing lists > Public > www-style@w3.org > March 2005

Re: Designs that zoom (was : Why reduce font size)

From: Allan Sandfeld Jensen <kde@carewolf.com>
Date: Fri, 4 Mar 2005 10:39:38 +0100
To: www-style@w3.org
Message-Id: <200503041039.38353.kde@carewolf.com>

On Friday 04 March 2005 10:10, Mikko Rantalainen wrote:
>
> The thing is, you MUST NOT round the layout coordinates while
> computing "width" or "height". The correct method is to use floating
> point numbers for top,left coordinates and then do
>
When will people stop this "floating point" nonsense? There is absolutely 
nothing you need floating points number for to solve this. All you need is a 
fixed point. For instance using 30+2 bit fixed point could solve the 50%+50% 
or 25%+25%+25%+25% issues (because any one sub-pixel error would be 
invisible), but as other have noted there is no way to solve it completly. It 
is product of computer math the same way you should never compare two 
calculated floating-point numbers accurately.

`Allan
Received on Friday, 4 March 2005 09:40:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:36 GMT