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

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

From: Masayuki Nakano <masayuki@d-toybox.com>
Date: Mon, 19 Mar 2012 14:15:58 +0900
Message-ID: <4F66C10E.30501@d-toybox.com>
To: Glenn Maynard <glenn@zewt.org>
CC: Boris Zbarsky <bzbarsky@mit.edu>, www-dom@w3.org
On 2012/03/19 0:29, Glenn Maynard wrote:
> 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...

I think there are no merit of using float in DOM APIs. Such values must 
not be stored in big array.

I guess that a lot of web application developers are not familiar with 
these fractional error issues (like me). Then, if we used float for DOM 
APIs, it would confuse them.

If JS's fractional number is always double, i.e., doesn't depend on the 
implementation, double is better than float for APIs.

-- Masayuki Nakano <masayuki@d-toybox.com> Manager, 
Internationalization, Mozilla Japan.
Received on Monday, 19 March 2012 05:16:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:19 UTC