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

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