W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2009

Re: [WebIDL] double

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 15 Jun 2009 06:55:48 +1000
To: Ian Hickson <ian@hixie.ch>
Cc: Anne van Kesteren <annevk@opera.com>, Marcin Hanclik <Marcin.Hanclik@access-company.com>, Andrei Popescu <andreip@google.com>, public-webapps@w3.org, public-geolocation@w3.org
Message-ID: <20090614205548.GA9974@arc.mcc.id.au>
Ian Hickson:
> How do I know when to use float or double, for types that are supposed to 
> represent infinite range? Should I just make everything double?

If you want more range, sure, use double.  Web IDL doesn’t have an
arbitrary precision numeric type.  But double specifically means 64-bit
IEEE 754 double precision floating point, here, which is just what JS
Number is (except for the NaNs).

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Sunday, 14 June 2009 20:56:50 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:31 GMT