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

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 UTC