W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2012

Re: [DOM3 Events] Error between float vs. double of WheelEvent

From: Glenn Maynard <glenn@zewt.org>
Date: Sun, 18 Mar 2012 10:29:06 -0500
Message-ID: <CABirCh9ps8JM2GVVRXZ1LHJOAOHc8rC6Z62EMcq3HZBKkHsj8w@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-dom@w3.org
On Sun, Mar 18, 2012 at 9:56 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> Maybe.  Or maybe you picked a bad attribute to test?  Pick one that's been
> a float all along.
>

Someone who wants to dig through spec change history to find one will need
to do it, then.

It does seem fundamentally odd to have values quantized to floats in a
language that doesn't actually have them, if it results in "(x = y) == y"
being false.

The only case I've seen where floats are still useful is when you have big
arrays of them, like floating-point textures and 3d models.  What's the
point of using them in DOM APIs?  I doubt it would actually help a platform
without hardware doubles...

-- 
Glenn Maynard
Received on Sunday, 18 March 2012 15:29:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:09 GMT