W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2008

Re: ISSUE-37: [Progress] Use unsigned long long for .loaded and .total

From: Maciej Stachowiak <mjs@apple.com>
Date: Thu, 10 Jul 2008 17:19:01 -0700
Cc: Web Applications Working Group WG <public-webapps@w3.org>
Message-Id: <02AB3962-3478-4775-988B-7CD5C764E7F3@apple.com>
To: Cameron McCormack <cam@mcc.id.au>


On Jul 10, 2008, at 5:10 PM, Cameron McCormack wrote:

>
> Sam Weinig:
>> This seems somewhat problematic for JavaScript bindings, which use
>> doubles to represent numbers.  I don't believe it is possible to
>> represent an unsigned long long (making the assumption that means  
>> it is a
>> 64 bit integer) in a double.
>
> Right.  Currently I have Web IDL say that the closest value
> representable with a Number should be used:
>
>  http://dev.w3.org/2006/webapi/WebIDL/#es-unsigned-long-long
>
> That is for values >= 2**53.  Whether thatís a useful definition or
> something else should be done, Iím not sure.


53 bits is better than 32, in any case.

Regards,
Maciej
Received on Friday, 11 July 2008 00:19:42 GMT

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