W3C home > Mailing lists > Public > public-device-status@w3.org > November 2011

Battery API: make level a double instead of a float

From: Mounir Lamouri <mounir@lamouri.fr>
Date: Tue, 01 Nov 2011 19:07:52 +0100
Message-ID: <4EB03578.5050004@lamouri.fr>
To: public-device-status@w3.org

It would probably be better to have the level attribute being a double 
instead of a float. Not that the gain in precision is crucial but 
Javascript is using double precision floating point numbers so using 
them in our interfaces would be better.

Received on Tuesday, 1 November 2011 18:08:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:42:59 UTC